Skip to content

Commit

Permalink
chore: Minor error code fixes in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
berestovskyy committed Aug 20, 2024
1 parent af93e82 commit 0356ff8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions e2e/tests-dfx/bitcoin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ set_local_network_bitcoin_enabled() {
wait_until_replica_healthy

# Sometimes initially get an error like:
# IC0304: Attempt to execute a message on canister <>> which contains no Wasm module
# IC0537: Attempt to execute a message on canister <>> which contains no Wasm module
# but the condition clears.
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait 1\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
|| (echo "canister call did not succeed") # but continue, for better error reporting
# even after the above, still sometimes fails with
# IC0515: Certified state is not available yet. Please try again...
# IC0208: Certified state is not available yet. Please try again...
sleep 10
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait 2\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests-dfx/canister_http.bash
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ set_shared_local_network_canister_http_empty() {
wait_until_replica_healthy

# Sometimes initially get an error like:
# IC0304: Attempt to execute a message on canister <>> which contains no Wasm module
# IC0537: Attempt to execute a message on canister <>> which contains no Wasm module
# but the condition clears.
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait 1\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
|| (echo "canister call did not succeed") # but continue, for better error reporting

# Even so, after that passes, sometimes this happens:
# IC0515: Certified state is not available yet. Please try again...
# IC0208: Certified state is not available yet. Please try again...
sleep 10
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait 2\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
Expand Down
8 changes: 4 additions & 4 deletions e2e/tests-dfx/start.bash
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ teardown() {
wait_until_replica_healthy

# Sometimes initially get an error like:
# IC0304: Attempt to execute a message on canister <>> which contains no Wasm module
# IC0537: Attempt to execute a message on canister <>> which contains no Wasm module
# but the condition clears.
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
|| (echo "canister call did not succeed") # but continue, for better error reporting
# even after the above, still sometimes fails with
# IC0515: Certified state is not available yet. Please try again...
# IC0208: Certified state is not available yet. Please try again...
sleep 10
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
Expand Down Expand Up @@ -247,13 +247,13 @@ teardown() {
wait_until_replica_healthy

# Sometimes initially get an error like:
# IC0304: Attempt to execute a message on canister <>> which contains no Wasm module
# IC0537: Attempt to execute a message on canister <>> which contains no Wasm module
# but the condition clears.
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
|| (echo "canister call did not succeed") # but continue, for better error reporting
# even after the above, still sometimes fails with
# IC0515: Certified state is not available yet. Please try again...
# IC0208: Certified state is not available yet. Please try again...
sleep 10
timeout 30s sh -c \
"until dfx canister call hello_backend greet '(\"wait\")'; do echo waiting for any canister call to succeed; sleep 1; done" \
Expand Down

0 comments on commit 0356ff8

Please sign in to comment.