Stabilize synchronous Noise restart tests

This commit is contained in:
jack
2026-07-25 23:49:41 +02:00
parent 9a14d0dadd
commit b153bc5d29
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,