Skip to content

Commit

Permalink
Try to fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
akolosov-n committed Aug 30, 2023
1 parent 6a2af38 commit ae77c24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
java: [ '8', '11', '17' ]
platform: [ 'ubuntu-latest', 'macos-12', 'windows-latest' ]
platform: [ 'windows-latest' ] # 'ubuntu-latest', 'macos-12',
exclude:
- platform: ${{ github.repository == 'open-coap/kotlin-mbedtls' || 'macos-12' }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ class DtlsServerTest {

assertEquals(1, dtlsServer.numberOfSessions)

val javaVersion = System.getProperty("java.version").split(".").first().toIntOrNull() ?: 0
println("Java version: $javaVersion")
println("OS: ${System.getProperty("os.name")}")
if (!(System.getProperty("os.name").startsWith("Windows") && javaVersion <= 11)) {
assertTrue(serverOutboundQueue.isEmpty())
var serverOutboundQueueIsEmpty = false
repeat(10) {
serverOutboundQueueIsEmpty = serverOutboundQueue.isEmpty()
Thread.sleep(500)
}
assertTrue(serverOutboundQueueIsEmpty)

clientSession.close()
}

Expand Down Expand Up @@ -181,6 +182,7 @@ class DtlsServerTest {
assertEquals("terve", dtlsServer.handleAndDecrypt(dtlsPacket))

assertTrue(serverOutboundQueue.isEmpty())

clientSession.close()
}

Expand Down

0 comments on commit ae77c24

Please sign in to comment.