From c5f7b311952ba2d219e3bb32beb2171cffc7f510 Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Wed, 9 Apr 2025 09:08:31 -0400 Subject: [PATCH] add expected error message when offer funds swept while taking --- src/HavenoClient.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index 62d9ff05..755a6ee8 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -2270,7 +2270,7 @@ test("Can handle unexpected errors during trade initialization (Test)", async () // determine if error is expected let expected = false; - const expectedErrMsgs = ["not enough unlocked money", "timeout reached. protocol did not complete", "trade is already taken"]; + const expectedErrMsgs = ["not enough unlocked money", "timeout reached. protocol did not complete", "trade is already taken", "open offer has been removed"]; for (const expectedErrMsg of expectedErrMsgs) { if (err.message.indexOf(expectedErrMsg) >= 0) { expected = true;