diff --git a/src/test.cpp b/src/test.cpp index c1f04b2..a911f0c 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -953,10 +953,10 @@ struct TestConnection u16 peer_id_client = 2; #if 0 + /* + Send consequent packets in different order + */ { - /* - Send consequent packets in different order - */ //u8 data1[] = "hello1"; //u8 data2[] = "hello2"; SharedBuffer data1 = SharedBufferFromString("hello1"); @@ -1027,6 +1027,42 @@ struct TestConnection assert(got_exception); } #endif + /* + Send large amounts of packets (infinite test) + */ + { + infostream<<"Sending large amounts of packets (infinite test)"< data1(datasize); + for(u16 i=0; i