Skip to content

Commit f8bf969

Browse files
committed
CI: fix slow workers taking long time to start threads
The test breaks on slow workers with result.time almost 500ms. I think the long connectTime (more than 200ms) is responsible for the "early" interrupt.
1 parent 7c83460 commit f8bf969

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/protocol/http/src/test/kotlin/org/apache/jmeter/protocol/http/HttpRequestInterruptTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class HttpRequestInterruptTest : JMeterTestCase() {
6565
}
6666

6767
assertEquals(5, events.size) { "5 events expected, got $events" }
68-
if (events.any { it.result.isSuccessful || it.result.isResponseCodeOK || it.result.time < 500 }) {
68+
if (events.any { it.result.isSuccessful || it.result.isResponseCodeOK || (it.result.time + it.result.connectTime) < 500 }) {
6969
fail(
7070
"All events should be failing, and they should take more than 500ms since the requests " +
7171
"should have been cancelled after 1sec. Results are: $events"

0 commit comments

Comments
 (0)