Stabilize synchronous Noise restart tests

This commit is contained in:
jack
2026-07-26 02:09:31 +02:00
parent b255355fed
commit 356e37b70e
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,