Add protection to WiFi test setup
@@ -580,6 +580,8 @@ TEST_SETUP( Full_WiFi )
WIFIReturnCode_t xWiFiStatus;
WIFIScanResult_t xScanResults[ 10 ] = { 0 };
+ if( TEST_PROTECT() )
+ {
/* Disconnect first before running any Wi-Fi test. */
xWiFiStatus = WIFI_Disconnect();
TEST_ASSERT_EQUAL_INT( eWiFiSuccess, xWiFiStatus );
@@ -601,6 +603,9 @@ TEST_SETUP( Full_WiFi )
( "End of WiFi Networks\r\n" ) );
vTaskDelay( testwifiCONNECTION_DELAY );
+ } else {
+ TEST_FAIL();
+ }
}
TEST_TEAR_DOWN( Full_WiFi )
