From 29bdcf0c034e122053631897c9fd70eb4074377b Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Mon, 4 Mar 2024 15:56:58 -0500 Subject: [PATCH] test: improve a flacky start e2e test (#3637) --- e2e/tests-dfx/start.bash | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e/tests-dfx/start.bash b/e2e/tests-dfx/start.bash index f1441bf43a..9cff120f49 100644 --- a/e2e/tests-dfx/start.bash +++ b/e2e/tests-dfx/start.bash @@ -435,17 +435,17 @@ teardown() { } @test "flags count as configuration modification and require --clean" { - dfx_start + dfx start --background dfx stop - assert_command_fail dfx_start --enable-bitcoin + assert_command_fail dfx start --artificial-delay 100 --background assert_contains "The network configuration was changed. Rerun with \`--clean\`." - assert_command dfx_start --enable-bitcoin --clean + assert_command dfx start --artificial-delay 100 --clean --background dfx stop - assert_command dfx_start --enable-bitcoin + assert_command dfx start --artificial-delay 100 --background dfx stop - assert_command_fail dfx_start + assert_command_fail dfx start --background assert_contains "The network configuration was changed. Rerun with \`--clean\`." - assert_command dfx_start --force + assert_command dfx start --force --background } @test "dfx start then ctrl-c won't hang and panic but stop actors quickly" {