Fixing Nile tests

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

Fixing Nile tests

Stéphane Ducasse
Hi all

I'm trying to fix the failing tests of Nile and for example I do not  
know how to get this socket working.
Does it work with you?

testNext
        " this method seems to not work correctly ( or I have not understood  
how to yuse it).
Try to run the test and you will see that the 'inObjects' instance  
variable is never fill in"
        socket1 listenOn: 8080.
        socket2
                connectTo: NetNameResolver localHostAddress
                port: 8080.
        socket2 sendData: 'hello'.
        stream processIO.
        self assert: stream next = 'hello'


Stef

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fixing Nile tests

Stéphane Ducasse
I do not understand why I get different results.

NetNameResolver addressForName: 'localhost'
        -> ::1(localhost),0(0)

NetNameResolver localHostAddress
        -> fe80::223:6cff:fe8d:7420%en1(drown.local),0(0)


On Nov 7, 2009, at 6:49 PM, Stéphane Ducasse wrote:

> Hi all
>
> I'm trying to fix the failing tests of Nile and for example I do not
> know how to get this socket working.
> Does it work with you?
>
> testNext
> " this method seems to not work correctly ( or I have not understood
> how to yuse it).
> Try to run the test and you will see that the 'inObjects' instance
> variable is never fill in"
> socket1 listenOn: 8080.
> socket2
> connectTo: NetNameResolver localHostAddress
> port: 8080.
> socket2 sendData: 'hello'.
> stream processIO.
> self assert: stream next = 'hello'
>
>
> Stef
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project