Stabilize synchronous Noise restart tests

This commit is contained in:
jack
2026-07-25 20:08:28 +02:00
parent 27ed9937c9
commit 733bd010b6
5 changed files with 113 additions and 29 deletions
@@ -723,7 +723,8 @@ struct NoiseEncryptionServiceTests {
message: spoofedMessage1
)
)
try? await Task.sleep(nanoseconds: 35_000_000)
// Exercise replacement before yielding: the test runner may resume a
// short sleep after the fixed responder deadline under parallel load.
_ = try #require(
try bob.processHandshakeMessage(
from: alicePeerID,