The Inbox: NetworkTests-ct.59.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: NetworkTests-ct.59.mcz

commits-2
Christoph Thiede uploaded a new version of NetworkTests to project The Inbox:
http://source.squeak.org/inbox/NetworkTests-ct.59.mcz

==================== Summary ====================

Name: NetworkTests-ct.59
Author: ct
Time: 3 September 2020, 1:05:46.401083 pm
UUID: f29c9c9a-0f9d-2c49-9a78-2ff656b9c3a4
Ancestors: NetworkTests-pre.58

Regression tests for Network-ct.242.

=============== Diff against NetworkTests-pre.58 ===============

Item was added:
+ ----- Method: SocketStreamTest>>testOpenConnection (in category 'tests') -----
+ testOpenConnection
+
+ | stream |
+ [self
+ shouldnt: [stream := SocketStream openConnectionToHostNamed: 'google.de' port: 80]
+ raise: NetworkError.
+ self assert: stream isConnected] ensure: [
+ stream close].
+
+ [self
+ should: [stream := SocketStream openConnectionToHostNamed: 'thisurlshouldbeinval.it' port: 80]
+ raise: NetworkError] ensure: [stream close].
+
+ [self
+ should: [stream := SocketStream openConnectionToHostNamed: '' port: 80]
+ raise: NetworkError] ensure: [stream close].!