Stabilize synchronous Noise restart tests

This commit is contained in:
jack
2026-07-25 20:39:44 +02:00
parent 74f0c96ac0
commit 7c8ef3be2a
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,