aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-24 12:50:10 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-01-24 12:50:10 +0200
commit24b1008d5634eb0941a6f97743dbbf1f8c353baf (patch)
treea6f121805178be0ed98e76e8ed6c2d43f5a4d60d /src
parenta4340c330ac06763f0e09f8579beafc23b8a311d (diff)
downloadminetest-24b1008d5634eb0941a6f97743dbbf1f8c353baf.tar.gz
minetest-24b1008d5634eb0941a6f97743dbbf1f8c353baf.tar.bz2
minetest-24b1008d5634eb0941a6f97743dbbf1f8c353baf.zip
Remove unnecessary delays from large data transfer unit test
Diffstat (limited to 'src')
-rw-r--r--src/test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test.cpp b/src/test.cpp
index 23113b123..4226df544 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -1201,7 +1201,7 @@ struct TestConnection
server.Send(peer_id_client, 0, data1, true);
- sleep_ms(3000);
+ //sleep_ms(3000);
SharedBuffer<u8> recvdata;
infostream<<"** running client.Receive()"<<std::endl;
@@ -1210,7 +1210,7 @@ struct TestConnection
bool received = false;
u32 timems0 = porting::getTimeMs();
for(;;){
- if(porting::getTimeMs() - timems0 > 5000)
+ if(porting::getTimeMs() - timems0 > 5000 || received)
break;
try{
size = client.Receive(peer_id, recvdata);