From 2b112b79f045e815065ff7672f54b355adb4c308 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 13 Jun 2023 10:26:28 +0200 Subject: [PATCH] Update wasmd not found messages in tests --- packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts | 4 ++-- .../cosmwasm-stargate/src/modules/wasm/queries.spec.ts | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts b/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts index cdb6f81dad..08a08b6ff3 100644 --- a/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts +++ b/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts @@ -400,7 +400,7 @@ describe("CosmWasmClient", () => { const nonExistentAddress = makeRandomAddress(); const client = await CosmWasmClient.connect(wasmd.endpoint); await expectAsync(client.queryContractRaw(nonExistentAddress, configKey)).toBeRejectedWithError( - /not found/i, + /no such contract/i, ); }); }); @@ -460,7 +460,7 @@ describe("CosmWasmClient", () => { const client = await CosmWasmClient.connect(wasmd.endpoint); await expectAsync( client.queryContractSmart(nonExistentAddress, { verifier: {} }), - ).toBeRejectedWithError(/not found/i); + ).toBeRejectedWithError(/no such contract/i); }); }); }); diff --git a/packages/cosmwasm-stargate/src/modules/wasm/queries.spec.ts b/packages/cosmwasm-stargate/src/modules/wasm/queries.spec.ts index 5ca31b983b..15296bbe00 100644 --- a/packages/cosmwasm-stargate/src/modules/wasm/queries.spec.ts +++ b/packages/cosmwasm-stargate/src/modules/wasm/queries.spec.ts @@ -233,7 +233,9 @@ describe("WasmExtension", () => { assert(hackatomCodeId); const client = await makeWasmClient(wasmd.endpoint); const nonExistentAddress = makeRandomAddress(); - await expectAsync(client.wasm.getContractInfo(nonExistentAddress)).toBeRejectedWithError(/not found/i); + await expectAsync(client.wasm.getContractInfo(nonExistentAddress)).toBeRejectedWithError( + /no such contract/i, + ); }); }); @@ -301,7 +303,7 @@ describe("WasmExtension", () => { const client = await makeWasmClient(wasmd.endpoint); const nonExistentAddress = makeRandomAddress(); await expectAsync(client.wasm.getAllContractState(nonExistentAddress)).toBeRejectedWithError( - /not found/i, + /no such contract/i, ); }); }); @@ -332,7 +334,7 @@ describe("WasmExtension", () => { const nonExistentAddress = makeRandomAddress(); await expectAsync( client.wasm.queryContractRaw(nonExistentAddress, hackatomConfigKey), - ).toBeRejectedWithError(/not found/i); + ).toBeRejectedWithError(/no such contract/i); }); }); @@ -362,7 +364,7 @@ describe("WasmExtension", () => { const nonExistentAddress = makeRandomAddress(); const request = { verifier: {} }; await expectAsync(client.wasm.queryContractSmart(nonExistentAddress, request)).toBeRejectedWithError( - /not found/i, + /no such contract/i, ); }); });