projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4340c3
)
Remove unnecessary delays from large data transfer unit test
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 24 Jan 2012 10:50:10 +0000
(12:50 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 24 Jan 2012 10:50:10 +0000
(12:50 +0200)
src/test.cpp
patch
|
blob
|
history
diff --git
a/src/test.cpp
b/src/test.cpp
index 23113b1233ac77dc74d5cee186fc051ebda80ebb..4226df544befcfb706ebdcf52e7571e09743bd46 100644
(file)
--- 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);