Skip to content

Commit

Permalink
end2endTest: allow IOC enough time to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphlange committed Jul 7, 2023
1 parent 6fb7bf5 commit 8ddd1d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion devOpcuaSup/UaSdk/SessionUaSdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ void SessionUaSdk::connectionStatusChanged (
OpcUa_ReferenceParameter(clientConnectionId);
// Don't print Disconnected <-> ConnectionErrorApiReconnect unless in debug mode
if (debug)
std::cout << "Session " << name.c_str() << ": connection status changed from "
std::cerr << "Session " << name.c_str() << ": connection status changed from "
<< serverStatusString(serverConnectionStatus) << " to "
<< serverStatusString(serverStatus) << std::endl;

Expand Down
2 changes: 2 additions & 0 deletions end2endTest/test_opcua.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def test_stop_and_restart_server(self, test_inst):
ioc.start()
assert ioc.is_running()

sleep(test_inst.sleepTime)

test_inst.stop_server()
assert ioc.is_running()

Expand Down

0 comments on commit 8ddd1d2

Please sign in to comment.