Skip to content

Commit

Permalink
fixed integration test (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Nov 4, 2024
1 parent 406c54d commit 589a6ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,10 @@ describe('mint api', () => {
wallet.onMintQuoteUpdates(
[mintQuote.quote],
(p) => {
if (p.state === MintQuoteState.PAID) callback();
res(1);
if (p.state === MintQuoteState.PAID) {
callback();
res(1);
}
},
(e) => {
console.log(e);
Expand All @@ -299,18 +301,16 @@ describe('mint api', () => {
let counter = 0;
const unsub = await wallet.onMintQuoteUpdates(
[mintQuote1.quote, mintQuote2.quote],
(p) => {
console.log(p);
() => {
counter++;
callbackRef();
if (counter === 4) {
unsub();
res(1);
}
},
(e) => {
() => {
counter++;
console.log(e);
if (counter === 4) {
unsub();
rej();
Expand Down Expand Up @@ -353,6 +353,6 @@ describe('mint api', () => {
);
wallet.swap(63, proofs);
});
console.log('final ws boss', data);
});
mint.disconnectWebSocket();
}, 10000);
});

0 comments on commit 589a6ac

Please sign in to comment.