From c121598e929d3f61af6ba70034ee696fa1c6af97 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Sat, 9 Sep 2023 23:47:20 +0530 Subject: [PATCH] Added timeout of 2 seconds before checking for message serial --- .../Realtime/ConnectionSpecs/ConnectionSpecs.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionSpecs.cs b/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionSpecs.cs index ebfd6c110..9e4937037 100644 --- a/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionSpecs.cs +++ b/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionSpecs.cs @@ -25,6 +25,7 @@ public async Task RecoveryKey_MsgSerialShouldNotBeSentToAblyButShouldBeSetOnConn paramsDict.ContainsKey("recover").Should().BeTrue(); paramsDict["recover"].Should().Be("uniqueKey"); paramsDict.ContainsKey("msg_serial").Should().BeFalse(); + await Task.Delay(2000); client.Connection.MessageSerial.Should().Be(45); }