From 1ef1f997ba366e60d3465c8c8344601ef1f8cbfe Mon Sep 17 00:00:00 2001 From: Manuel Turetta Date: Mon, 17 Jul 2023 11:59:42 -0500 Subject: [PATCH] test: fixed failing tests --- Cargo.lock | 31 ++++++--------------------- Cargo.toml | 2 +- contracts/remarkables/src/contract.rs | 4 ++-- contracts/tips/src/contract.rs | 4 ++-- 4 files changed, 11 insertions(+), 30 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 41b20b69..e6e2f458 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -222,25 +222,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "cw-multi-test" -version = "0.16.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "127c7bb95853b8e828bdab97065c81cb5ddc20f7339180b61b2300565aaa99d1" -dependencies = [ - "anyhow", - "cosmwasm-std", - "cw-storage-plus 1.1.0", - "cw-utils 1.0.1", - "derivative", - "itertools", - "k256", - "prost", - "schemars", - "serde", - "thiserror", -] - [[package]] name = "cw-ownable" version = "0.5.1" @@ -492,7 +473,7 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cosmwasm-storage", - "cw-multi-test 0.16.5", + "cw-multi-test", "cw-storage-plus 1.1.0", "cw2 1.1.0", "cw721 0.16.0 (git+https://github.com/desmos-labs/cw-nfts?branch=paul/update-custom-msg-query)", @@ -532,7 +513,7 @@ checksum = "6a1cbb24dd731c22d21b49690a6ab257e89435c124ea1d0f354295e21d3ffc49" dependencies = [ "anyhow", "cosmwasm-std", - "cw-multi-test 0.15.1", + "cw-multi-test", "schemars", "serde", "thiserror", @@ -772,7 +753,7 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cosmwasm-storage", - "cw-multi-test 0.16.5", + "cw-multi-test", "cw-ownable", "cw-storage-plus 1.1.0", "cw-utils 1.0.1", @@ -851,7 +832,7 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cosmwasm-storage", - "cw-multi-test 0.16.5", + "cw-multi-test", "cw-storage-plus 1.1.0", "cw-utils 1.0.1", "cw2 1.1.0", @@ -1018,7 +999,7 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cosmwasm-storage", - "cw-multi-test 0.16.5", + "cw-multi-test", "cw-storage-plus 1.1.0", "cw2 1.1.0", "desmos-bindings", @@ -1107,7 +1088,7 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cosmwasm-storage", - "cw-multi-test 0.16.5", + "cw-multi-test", "cw-storage-plus 1.1.0", "cw-utils 1.0.1", "cw2 1.1.0", diff --git a/Cargo.toml b/Cargo.toml index 385e8207..27de5fe4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ cosmwasm-schema = "1.3.0" cw-storage-plus = "1.1.0" cw-utils = "1.0.1" cw2 = "1.1.0" -cw-multi-test = "0.16.5" +cw-multi-test = "0.15.1" # Desmos dependencies desmos-bindings = { version = "1.1.1", default-features = false } # Misc dependencies diff --git a/contracts/remarkables/src/contract.rs b/contracts/remarkables/src/contract.rs index 81889bf6..56ef9610 100644 --- a/contracts/remarkables/src/contract.rs +++ b/contracts/remarkables/src/contract.rs @@ -498,7 +498,7 @@ mod tests { assert_eq!( instantiate(deps.as_mut(), env, info, invalid_msg).unwrap_err(), ContractError::Std(StdError::generic_err( - "Invalid input: human address too short" + "Invalid input: human address too short for this mock implementation (must be >= 3)." )) ) } @@ -928,7 +928,7 @@ mod tests { assert_eq!( execute(deps.as_mut(), env, info, msg).unwrap_err(), ContractError::Std(StdError::generic_err( - "Invalid input: human address too short" + "Invalid input: human address too short for this mock implementation (must be >= 3)." )) ) } diff --git a/contracts/tips/src/contract.rs b/contracts/tips/src/contract.rs index 553ed92e..13243988 100644 --- a/contracts/tips/src/contract.rs +++ b/contracts/tips/src/contract.rs @@ -750,7 +750,7 @@ mod tests { assert_eq!( ContractError::Std(StdError::generic_err( - "Invalid input: human address too short" + "Invalid input: human address too short for this mock implementation (must be >= 3)." )), tip_error ); @@ -1589,7 +1589,7 @@ mod tests { assert_eq!( ContractError::Std(StdError::generic_err( - "Invalid input: human address too short" + "Invalid input: human address too short for this mock implementation (must be >= 3)." )), error );