Skip to content

Commit

Permalink
Better test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Stephens committed Jul 14, 2024
1 parent d448c78 commit d704dc5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/tests/DNP3Port_tests/TestDNP3PortLinkFailure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ TEST_CASE(SUITE("Single Drop"))
auto new_open1 = require_connection_increase(pMITM,true,start_open1);
auto new_open2 = require_connection_increase(pMITM,false,start_open2);
odc::spdlog_get("DNP3Port")->info("New connection count: {},{}",new_open1,new_open2);

port_pair.first->Disable();
port_pair.second->Disable();
}

work.reset();
Expand Down
1 change: 1 addition & 0 deletions Code/tests/FileTransferPort_tests/EndToEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ TEST_CASE(SUITE("CorruptConnector"))
//turn them off
RX->Disable();
TX->Disable();
nasty.Disable();
}
//Unload the library
UnLoadModule(portlib);
Expand Down
3 changes: 3 additions & 0 deletions Code/tests/ODC_tests/EventInfoTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ TEST_CASE(SUITE("PayloadTransport"))
ios->poll_one();

watchdog->cancel();
Source.Disable();
Sink.Disable();
Conn.Disable();
work.reset();
ios->run();

Expand Down

0 comments on commit d704dc5

Please sign in to comment.