Skip to content

Commit

Permalink
Increase timeout for tests (near#11470)
Browse files Browse the repository at this point in the history
When I run `cargo nextest run --cargo-profile dev-release` I often get
timeouts because some tests can run for more than 120 seconds:
```
        PASS [  45.690s] estimator-warehouse::bin/estimator-warehouse tests::test_full_estimator
        PASS [  48.150s] integration-tests tests::client::process_blocks::contract_precompilation_tests::test_two_deployments
        PASS [  40.543s] near-client tests::query_client::test_state_request
        PASS [  68.920s] integration-tests tests::client::sync_state_nodes::test_dump_epoch_missing_chunk_in_last_block
        PASS [ 131.637s] integration-tests tests::client::state_dump::test_state_sync_w_dumped_parts
```

This is annoying, when a test timeouts the test run is considered
"failed" and it spams the whole console with test logs.

Let's increase the timeout duration to 3s so that the tests don't
timeout.
  • Loading branch information
jancionear authored Jun 5, 2024
1 parent 8800f9d commit 5026612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[profile.default]
slow-timeout = { period = "60s", terminate-after = 2, grace-period = "0s" }
slow-timeout = { period = "60s", terminate-after = 3, grace-period = "0s" }

[[profile.default.overrides]]
filter = 'test(test_full_estimator)'
Expand Down

0 comments on commit 5026612

Please sign in to comment.