diff -r 8fc8de15e664 -r afebdb533a85 datacommsserver/esockserver/test/TE_Socket/SocketTestSection1.cpp --- a/datacommsserver/esockserver/test/TE_Socket/SocketTestSection1.cpp Mon May 24 18:49:19 2010 +0100 +++ b/datacommsserver/esockserver/test/TE_Socket/SocketTestSection1.cpp Tue Jul 20 18:12:15 2010 +0100 @@ -384,15 +384,21 @@ { sockNum--; } - Logger().WriteFormat(_L("Created %d sockets, expected at least %d sockets"), sockNum, sockCount1); - TESTL(sockNum >= sockCount1); + Logger().WriteFormat(_L("Created %d sockets"), sockNum); + + // Not sure what use it is to test whether we can open at least as many sockets as previously. + // We can't assume that once we've freed all the sockets first time around that the ESock heap will + // go back exactly to where it was before - this makes assumptions about the ESock algorithms. Why + // wouldn't ESock legitimately cache objects, for example? + //TESTL(sockNum >= sockCount1); - Logger().WriteFormat(_L("Freeing sockets in creation order")); - for (i=0; i