2
0
Эх сурвалжийг харах

Removed sleeps between tests

Paul-Louis Ageneau 3 жил өмнө
parent
commit
c1a0ea32de
2 өөрчлөгдсөн 1 нэмэгдсэн , 8 устгасан
  1. 1 3
      test/benchmark.cpp
  2. 0 5
      test/main.cpp

+ 1 - 3
test/benchmark.cpp

@@ -121,7 +121,7 @@ size_t benchmark(milliseconds duration) {
 			}
 		} catch (const std::exception &e) {
 			std::cout << "Send failed: " << e.what() << std::endl;
-		}		
+		}
 	});
 
 	// When sent data is buffered in the DataChannel,
@@ -166,8 +166,6 @@ size_t benchmark(milliseconds duration) {
 
 	pc1.close();
 	pc2.close();
-
-	rtc::Cleanup();
 	this_thread::sleep_for(1s);
 	return goodput;
 }

+ 0 - 5
test/main.cpp

@@ -55,7 +55,6 @@ int main(int argc, char **argv) {
 		cerr << "WebRTC connectivity test failed: " << e.what() << endl;
 		return -1;
 	}
-	this_thread::sleep_for(1s);
 	try {
 		cout << endl << "*** Running WebRTC TURN connectivity test..." << endl;
 		test_turn_connectivity();
@@ -64,7 +63,6 @@ int main(int argc, char **argv) {
 		cerr << "WebRTC TURN connectivity test failed: " << e.what() << endl;
 		return -1;
 	}
-	this_thread::sleep_for(1s);
 	try {
 		cout << endl << "*** Running WebRTC C API connectivity test..." << endl;
 		test_capi_connectivity();
@@ -74,7 +72,6 @@ int main(int argc, char **argv) {
 		return -1;
 	}
 #if RTC_ENABLE_MEDIA
-	this_thread::sleep_for(1s);
 	try {
 		cout << endl << "*** Running WebRTC Track test..." << endl;
 		test_track();
@@ -95,7 +92,6 @@ int main(int argc, char **argv) {
 #if RTC_ENABLE_WEBSOCKET
 // TODO: Temporarily disabled as the echo service is unreliable
 /*
-	this_thread::sleep_for(1s);
 	try {
 		cout << endl << "*** Running WebSocket test..." << endl;
 		test_websocket();
@@ -123,7 +119,6 @@ int main(int argc, char **argv) {
 	}
 #endif
 /*
-    this_thread::sleep_for(1s);
 	try {
 		cout << endl << "*** Running WebRTC benchmark..." << endl;
 		test_benchmark();