The Trunk: NetworkTests-topa.38.mcz

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

The Trunk: NetworkTests-topa.38.mcz

commits-2
Tobias Pape uploaded a new version of NetworkTests to project The Trunk:
http://source.squeak.org/trunk/NetworkTests-topa.38.mcz

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

Name: NetworkTests-topa.38
Author: topa
Time: 8 September 2015, 12:05:34.399 am
UUID: b3158c4f-00ca-4175-960d-222c670439e6
Ancestors: NetworkTests-fbs.37

- Getting peer names can take some time.
- Looking up 'localhost' directly is more reliable to return a consistent address upon connect-to than localHostName.

=============== Diff against NetworkTests-fbs.37 ===============

Item was changed:
  ----- Method: SocketTest>>listenerAddress (in category 'setup') -----
  listenerAddress
+ ^NetNameResolver addressForName: 'localhost'
- ^NetNameResolver localHostAddress
  !

Item was changed:
  ----- Method: SocketTest>>testPeerName (in category 'tests') -----
  testPeerName
  "None of these should throw an exception."
+ "This can actually take a while, depending on networks availability"
+ <timeout: 30>
+
  Socket new peerName.
  self testServerAccept.
  listenerSocket peerName.
  clientSocket peerName.
  serverSocket peerName.!