From 37f1de1a3d2171a3e87768bfeaf3c3d86640fa0f Mon Sep 17 00:00:00 2001 From: Szymon Sasin Date: Mon, 2 Sep 2024 11:34:32 +0300 Subject: [PATCH] test: fix flaky test --- .../org/opencoap/ssl/transport/DtlsServerTransportTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-mbedtls/src/test/kotlin/org/opencoap/ssl/transport/DtlsServerTransportTest.kt b/kotlin-mbedtls/src/test/kotlin/org/opencoap/ssl/transport/DtlsServerTransportTest.kt index 8470f42..3334dfe 100644 --- a/kotlin-mbedtls/src/test/kotlin/org/opencoap/ssl/transport/DtlsServerTransportTest.kt +++ b/kotlin-mbedtls/src/test/kotlin/org/opencoap/ssl/transport/DtlsServerTransportTest.kt @@ -451,7 +451,7 @@ class DtlsServerTransportTest { @Test fun `should put client's cid in the session context`() { server = DtlsServerTransport.create(conf) - val serverReceived = server.receive(1.seconds) + val serverReceived = server.receive(5.seconds) val client = DtlsTransmitter.connect(server, clientConfig).await() client.send("hello!") @@ -477,7 +477,7 @@ class DtlsServerTransportTest { fun `server should store session if hinted to do so`() { // given server = DtlsServerTransport.create(conf, sessionStore = sessionStore) - val serverReceived = server.receive(1.seconds) + val serverReceived = server.receive(5.seconds) val client = DtlsTransmitter.connect(server, clientConfig).await().mapToString() client.send("dupa")