Skip to content

Commit

Permalink
test: improve a flacky start e2e test (#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Mar 5, 2024
1 parent e4912f0 commit a7ddb96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions e2e/tests-dfx/start.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit a7ddb96

Please sign in to comment.