We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74df823 commit cbfd1f1Copy full SHA for cbfd1f1
1 file changed
Emulsion.Tests/Xmpp/EmulsionXmppTests.fs
@@ -89,9 +89,11 @@ type RunTests(outputHelper: ITestOutputHelper) =
89
let sw = Stopwatch.StartNew()
90
Assert.Throws<TimeoutException>(fun () -> runClientSynchronously settings logger client ignore)
91
|> ignore
92
+
93
+ let waitForTimeout = timeout * 4.0 // more than 2x observed in practice on a busy CI server
94
Assert.True(
- sw.Elapsed < timeout * 2.0,
- $"Elapsed time {sw.ElapsedMilliseconds} ms should be less than {(timeout * 2.0).TotalMilliseconds} ms."
95
+ sw.Elapsed < waitForTimeout,
96
+ $"Elapsed time {sw.ElapsedMilliseconds} ms should be less than {waitForTimeout.TotalMilliseconds} ms."
97
)
98
99
[<Fact>]
0 commit comments