]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/net/socket.cpp
use the currently active event loop for the event dispatching instead of wxYield...
[wxWidgets.git] / tests / net / socket.cpp
index 9145c276be68c6a4c827bb91dc57714ee21519df..7929b5ae3450b4291525f54c342697ae9c9631d9 100644 (file)
@@ -99,7 +99,7 @@ wxSocketClientPtr SocketTestCase::GetHTTPSocket(int flags) const
         "Host: " + gs_serverHost + "\r\n"
         "\r\n";
 
-    sock->Write(httpGetRoot, httpGetRoot.length());
+    sock->Write(httpGetRoot.ToAscii(), httpGetRoot.length());
 
     ptr.reset(sock);
     return ptr;
@@ -141,7 +141,7 @@ void SocketTestCase::ReadNormal()
     CPPUNIT_ASSERT_EQUAL( WXSIZEOF(bufSmall), sock->LastCount() );
 
 
-    char bufBig[1024*1024];
+    char bufBig[102400];
     sock->Read(bufBig, WXSIZEOF(bufBig));
 
     CPPUNIT_ASSERT_EQUAL( wxSOCKET_NOERROR, sock->LastError() );