Skip to content

Commit

Permalink
Run Hosted Tcp tests only if network is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Apr 16, 2021
1 parent e0a2128 commit b51536a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/HostTests/modules/Hosted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class HostedTest : public TestGroup
REQUIRE(commands["pinMode"] == 0);
}

if(!WifiStation.isConnected()) {
Serial.println("No network, skipping tests");
return;
}

// RPC Server
server = new TcpServer();
server->listen(4031);
Expand Down

0 comments on commit b51536a

Please sign in to comment.