Skip to content

Commit f98fcea

Browse files
committed
adding comment and removing skip
1 parent 6a024bf commit f98fcea

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/src/main/kotlin/org/evomaster/core/output/service/RestTestCaseWriter.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ class RestTestCaseWriter : HttpWsTestCaseWriter {
290290
lines.append(", data=body")
291291
}
292292
if(config.testTimeout > 0) {
293+
/*
294+
As timeout at test level does not work reliably in Python, we do timeout as well in each HTTP call.
295+
*/
293296
lines.append(", timeout=${config.testTimeout}")
294297
}
295298
}

core/src/main/kotlin/org/evomaster/core/output/service/TestCaseWriter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ abstract class TestCaseWriter {
347347
if (config.testTimeout > 0) {
348348
lines.add("except TimeoutError as e:")
349349
lines.indented {
350-
lines.add("unittest.skip(\"Test skipped due to timeout\")")
350+
lines.add("pass")
351351
}
352352
}
353353
}

0 commit comments

Comments
 (0)