Skip to content

Commit

Permalink
Disable SocketPool performance tests by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLennox committed Oct 22, 2024
1 parent 5017a4f commit eb4511c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/test/kotlin/org/ice4j/socket/SocketPoolTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,15 @@ class SocketPoolTest : ShouldSpec() {
elapsedN shouldBeLessThan elapsed1 // Very weak test
}

context("Test sending packets from multiple threads") {
val enableOnlyIfPropertySet: (TestCase) -> Enabled = {
if (System.getProperty("doPerfTests") != null) {
Enabled.enabled
} else {
Enabled.disabled("Set \"doPerfTests\" property to enable SocketPool performance tests")
}
}

context("Test sending packets from multiple threads").config(enabledOrReasonIf = enableOnlyIfPropertySet) {
testSending()
}
}
Expand Down

0 comments on commit eb4511c

Please sign in to comment.