Try to fix flaky `temp-base-path-work` test (#13505)
* Try to fix flaky `temp-base-path-work` test The test is most of the time failing when checking if the database path was deleted. The assumption is that it takes a little bit more time by the OS to actually clean up the temp path under high load. The pr tries to fix this by checking multiple times if the path was deleted. Besides that it also ensures that the tests that require the benchmark feature don't fail when compiled without the feature. * ".git/.scripts/commands/fmt/fmt.sh" * Capture signals earlier * Rewrite tests to let them having one big timeout * Remove unneeded dep * Update bin/node/cli/tests/common.rs Co-authored-by:Koute <koute@users.noreply.github.com> * Review feedback * Update bin/node/cli/tests/common.rs Co-authored-by:
Anton <anton.kalyaev@gmail.com> --------- Co-authored-by: command-bot <> Co-authored-by:
Koute <koute@users.noreply.github.com> Co-authored-by:
Anton <anton.kalyaev@gmail.com>
Showing
- substrate/bin/node/cli/tests/benchmark_pallet_works.rs 2 additions, 0 deletionssubstrate/bin/node/cli/tests/benchmark_pallet_works.rs
- substrate/bin/node/cli/tests/benchmark_storage_works.rs 2 additions, 0 deletionssubstrate/bin/node/cli/tests/benchmark_storage_works.rs
- substrate/bin/node/cli/tests/common.rs 60 additions, 72 deletionssubstrate/bin/node/cli/tests/common.rs
- substrate/bin/node/cli/tests/running_the_node_and_interrupt.rs 65 additions, 78 deletions...rate/bin/node/cli/tests/running_the_node_and_interrupt.rs
- substrate/bin/node/cli/tests/telemetry.rs 64 additions, 67 deletionssubstrate/bin/node/cli/tests/telemetry.rs
- substrate/bin/node/cli/tests/temp_base_path_works.rs 30 additions, 33 deletionssubstrate/bin/node/cli/tests/temp_base_path_works.rs
- substrate/client/cli/src/lib.rs 12 additions, 2 deletionssubstrate/client/cli/src/lib.rs
- substrate/client/cli/src/runner.rs 61 additions, 36 deletionssubstrate/client/cli/src/runner.rs
Please register or sign in to comment