Skip to content

Commit

Permalink
test: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
szysas committed Sep 2, 2024
1 parent 2cdb628 commit 37f1de1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!")

Expand All @@ -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")
Expand Down

0 comments on commit 37f1de1

Please sign in to comment.