Skip to content

Commit 626cc2b

Browse files
committed
test: use kani built-in --harness-timeout option
Set a per-harness timeout of 30 minutes. This should hopefully make it easier to debug scenarios where proofs end up hanging indefinitely, as we now no longer hit the pytest timeout, but instead a timeout built into kani (which should tell us what exact harness timed out). Signed-off-by: Patrick Roy <[email protected]>
1 parent d5f3513 commit 626cc2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration_tests/test_kani.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_kani(results_dir):
3434
# --output-format terse is required by -j
3535
# -Z unstable-options is needed to enable the other `-Z` flags
3636
_, stdout, _ = utils.check_output(
37-
"cargo kani -Z unstable-options -Z stubbing -Z function-contracts -Z restrict-vtable -j --output-format terse",
37+
"cargo kani -Z unstable-options -Z stubbing -Z function-contracts -Z restrict-vtable -j --output-format terse --harness-timeout 40m",
3838
timeout=TIMEOUT,
3939
)
4040

0 commit comments

Comments
 (0)