Comment #1 on issue 3350 by stephane.ducasse: Network Tests http://code.google.com/p/pharo/issues/detail?id=3350
Two more SocketTests. =============== Diff against NetworkTests-ar.21 =============== Item was added: + ----- Method: SocketTest>>testDataReceive (in category 'tests') ----- + testDataReceive + "Test data transfer and related methods" + + self testDataSending. + "It can take a tad for the status change to be visible" + (Delay forMilliseconds: 200) wait. + self assert: serverSocket dataAvailable. + self assert: (serverSocket receiveData = 'Hello World'). + self deny: (serverSocket dataAvailable). + ! Item was added: + ----- Method: SocketTest>>testDataSending (in category 'tests') ----- + testDataSending + "Test data transfer and related methods" + + self testServerAccept. + clientSocket sendData: 'Hello World'. + clientSocket waitForSendDoneFor: 2. + self assert: clientSocket sendDone. +
