Fixed docker tests

This commit is contained in:
2022-04-17 20:05:36 -04:00
parent 41dab0cd30
commit 6b821d47b9
4 changed files with 42 additions and 26 deletions

View File

@@ -79,8 +79,10 @@ final class ClientLiveTests: XCTestCase {
Thread.sleep(forTimeInterval: 2)
XCTAssertEqual(state.sensors.returnAirSensor.temperature, .celsius(75.1234))
try client.shutdown().wait()
try mqttClient.disconnect().wait()
try mqttClient.syncShutdownGracefully()
// try client.shutdown().wait()
}
func test_client2_returnSensor_publish() throws {
@@ -111,7 +113,10 @@ final class ClientLiveTests: XCTestCase {
try client.publishSensor(.return(state.sensors.returnAirSensor)).wait()
XCTAssertFalse(state.sensors.returnAirSensor.needsProcessed)
try client.shutdown().wait()
try mqttClient.disconnect().wait()
try mqttClient.syncShutdownGracefully()
// try client.shutdown().wait()
}
// func test_fetch_humidity() throws {