瀏覽代碼

Increased test timings for destruction

Paul-Louis Ageneau 5 年之前
父節點
當前提交
6f419a32ea
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      test/capi.cpp
  2. 1 1
      test/connectivity.cpp
  3. 1 1
      test/websocket.cpp

+ 1 - 1
test/capi.cpp

@@ -200,7 +200,7 @@ int test_capi_main() {
 
 
 	// You may call rtcCleanup() when finished to free static resources
 	// You may call rtcCleanup() when finished to free static resources
 	rtcCleanup();
 	rtcCleanup();
-	sleep(1);
+	sleep(2);
 
 
 	printf("Success\n");
 	printf("Success\n");
 	return 0;
 	return 0;

+ 1 - 1
test/connectivity.cpp

@@ -150,7 +150,7 @@ void test_connectivity() {
 
 
 	// You may call rtc::Cleanup() when finished to free static resources
 	// You may call rtc::Cleanup() when finished to free static resources
 	rtc::Cleanup();
 	rtc::Cleanup();
-	this_thread::sleep_for(1s);
+	this_thread::sleep_for(2s);
 
 
 	cout << "Success" << endl;
 	cout << "Success" << endl;
 }
 }

+ 1 - 1
test/websocket.cpp

@@ -72,7 +72,7 @@ void test_websocket() {
 		throw runtime_error("Expected message not received");
 		throw runtime_error("Expected message not received");
 
 
 	ws->close();
 	ws->close();
-	this_thread::sleep_for(1s);
+	this_thread::sleep_for(2s);
 
 
 	// You may call rtc::Cleanup() when finished to free static resources
 	// You may call rtc::Cleanup() when finished to free static resources
 	rtc::Cleanup();
 	rtc::Cleanup();