Quellcode durchsuchen

Reordered tests

Paul-Louis Ageneau vor 3 Jahren
Ursprung
Commit
9468e76a7f
1 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen
  1. 8 8
      test/main.cpp

+ 8 - 8
test/main.cpp

@@ -49,14 +49,6 @@ void test_benchmark() {
 
 int main(int argc, char **argv) {
 	// C++ API tests
-	try {
-		cout << endl << "*** Running WebRTC connectivity test..." << endl;
-		test_negotiated();
-		cout << "*** Finished WebRTC negotiated datachannel test" << endl;
-	} catch (const exception &e) {
-		cerr << "WebRTC negotiated datachannel test failed: " << e.what() << endl;
-		return -1;
-	}
 	try {
 		cout << endl << "*** Running WebRTC connectivity test..." << endl;
 		test_connectivity();
@@ -73,6 +65,14 @@ int main(int argc, char **argv) {
 		cerr << "WebRTC TURN connectivity test failed: " << e.what() << endl;
 		return -1;
 	}
+	try {
+		cout << endl << "*** Running WebRTC negotiated DataChannel test..." << endl;
+		test_negotiated();
+		cout << "*** Finished WebRTC negotiated DataChannel test" << endl;
+	} catch (const exception &e) {
+		cerr << "WebRTC negotiated DataChannel test failed: " << e.what() << endl;
+		return -1;
+	}
 #if RTC_ENABLE_MEDIA
 	try {
 		cout << endl << "*** Running WebRTC Track test..." << endl;