update test to make or take offer with insufficient funds

This commit is contained in:
woodser 2024-12-21 10:32:33 -05:00
parent 0dda005f96
commit 1d50b0027e

View File

@ -1995,7 +1995,7 @@ test("Can go offline while resolving a dispute (CI)", async () => {
if (err) throw err;
});
test("Cannot make or take offer with insufficient unlocked funds (CI, sanity check)", async () => {
test("Cannot make or take offer with insufficient funds (CI, sanity check)", async () => {
let user3: HavenoClient|undefined;
let err: any;
try {
@ -2011,7 +2011,7 @@ test("Cannot make or take offer with insufficient unlocked funds (CI, sanity che
await makeOffer({maker: {havenod: user3}, makerPaymentAccountId: paymentAccount.getId(), awaitFundsToMakeOffer: false});
throw new Error("Should have failed making offer with insufficient funds")
} catch (err: any) {
if (!err.message.includes("not enough money")) throw err;
if (!err.message.includes("not enough funds")) throw err;
const errTyped = err as HavenoError;
assert.equal(errTyped.code, 2);
}