mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-04-18 23:05:51 -04:00
add expected error message when offer funds swept while taking
This commit is contained in:
parent
1644fd16df
commit
c5f7b31195
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user