Stabilize synchronous Noise restart tests

This commit is contained in:
jack
2026-07-26 00:12:26 +02:00
parent 546c907344
commit cd2693e3d9
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,