Skip to content

Commit cbfd1f1

Browse files
committed
Tests: improve the stability (increase timeout)
1 parent 74df823 commit cbfd1f1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Emulsion.Tests/Xmpp/EmulsionXmppTests.fs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,11 @@ type RunTests(outputHelper: ITestOutputHelper) =
8989
let sw = Stopwatch.StartNew()
9090
Assert.Throws<TimeoutException>(fun () -> runClientSynchronously settings logger client ignore)
9191
|> ignore
92+
93+
let waitForTimeout = timeout * 4.0 // more than 2x observed in practice on a busy CI server
9294
Assert.True(
93-
sw.Elapsed < timeout * 2.0,
94-
$"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."
9597
)
9698

9799
[<Fact>]

0 commit comments

Comments
 (0)