From c50e39ef7944d3ae79363b9a7becf32ab85fa06b Mon Sep 17 00:00:00 2001 From: Steve Hamblett Date: Tue, 6 Aug 2024 10:50:03 +0100 Subject: [PATCH] Release 10.5.0 --- test/mqtt_client_keep_alive_test.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/mqtt_client_keep_alive_test.dart b/test/mqtt_client_keep_alive_test.dart index e23ce32..962caed 100644 --- a/test/mqtt_client_keep_alive_test.dart +++ b/test/mqtt_client_keep_alive_test.dart @@ -265,20 +265,20 @@ void main() { final pingMessageRx = MqttPingResponseMessage(); ka.pingResponseReceived(pingMessageRx); latencies[0] = ka.lastCycleLatency; - expect(ka.lastCycleLatency > 1000, isTrue); - expect(ka.averageCycleLatency > 1000, isTrue); + expect(ka.lastCycleLatency > 0, isTrue); + expect(ka.averageCycleLatency > 0, isTrue); await MqttUtilities.asyncSleep(3); verify(() => ch.sendMessage(any())).called(1); ka.pingResponseReceived(pingMessageRx); latencies[1] = ka.lastCycleLatency; - expect(ka.lastCycleLatency > 1000, isTrue); - expect(ka.averageCycleLatency > 1000, isTrue); + expect(ka.lastCycleLatency > 0, isTrue); + expect(ka.averageCycleLatency > 0, isTrue); await MqttUtilities.asyncSleep(3); verify(() => ch.sendMessage(any())).called(1); ka.pingResponseReceived(pingMessageRx); latencies[2] = ka.lastCycleLatency; - expect(ka.lastCycleLatency > 1000, isTrue); - expect(ka.averageCycleLatency > 1000, isTrue); + expect(ka.lastCycleLatency > 0, isTrue); + expect(ka.averageCycleLatency > 0, isTrue); expect(ka.averageCycleLatency, (latencies[0] + latencies[1] + latencies[2]) ~/ 3); expect(disconnect, isFalse);