Skip to content

Commit

Permalink
test: tone down overly-sensitive psm-integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Nov 28, 2023
1 parent ca42577 commit b0abdb4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ test('null swap', async t => {
t.is(await E.get(getBalanceFor(anchor.brand)).value, 0n);
t.is(await E.get(getBalanceFor(mintedBrand)).value, 0n);

t.deepEqual(currents[0].liveOffers, []);
t.deepEqual(currents[1].liveOffers, []);
t.deepEqual(currents[2].liveOffers, [['nullSwap', offer]]);
t.deepEqual(currents[3].liveOffers, []);
const found = currents.find(c => c.liveOffers.length > 0);
t.deepEqual(found?.liveOffers, [['nullSwap', offer]]);
});

// we test this direction of swap because wanting anchor would require the PSM to have anchor in it first
Expand Down

0 comments on commit b0abdb4

Please sign in to comment.