From 8a4275e97f7662f6a48541e37a88256b6e8872bb Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Thu, 5 Nov 2026 07:23:43 +0000 Subject: [PATCH] test: match the no-Wasm-module error case-insensitively Network launcher 16.1.0-2026-10-30-12-16 capitalizes "Wasm" in the rejection for calling a canister with no code, which broke the case-sensitive assertion in canister_uninstall. Accept both spellings so this can land ahead of the launcher bump in #864. Co-Authored-By: Claude Opus 5.5 --- crates/icp-cli/tests/canister_uninstall_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/icp-cli/tests/canister_uninstall_tests.rs b/crates/icp-cli/tests/canister_uninstall_tests.rs index 7997b2073..b84de6694 100644 --- a/crates/icp-cli/tests/canister_uninstall_tests.rs +++ b/crates/icp-cli/tests/canister_uninstall_tests.rs @@ -1,7 +1,7 @@ use indoc::formatdoc; use predicates::{ prelude::PredicateBooleanExt, - str::{contains, starts_with}, + str::{contains, is_match, starts_with}, }; use crate::common::{ENVIRONMENT_RANDOM_PORT, NETWORK_RANDOM_PORT, TestContext, clients}; @@ -86,7 +86,7 @@ async fn canister_uninstall() { ]) .assert() .failure() - .stderr(contains("no wasm module")); + .stderr(is_match("(?i)no wasm module").unwrap()); } #[tokio::test]