From b0abdb414dbaa01b8fe63ab5b38c454e36f5e163 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 28 Nov 2023 13:50:33 -0600 Subject: [PATCH] test: tone down overly-sensitive psm-integration test --- .../inter-protocol/test/smartWallet/test-psm-integration.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/inter-protocol/test/smartWallet/test-psm-integration.js b/packages/inter-protocol/test/smartWallet/test-psm-integration.js index e5902ed20feb..04428bfd4803 100644 --- a/packages/inter-protocol/test/smartWallet/test-psm-integration.js +++ b/packages/inter-protocol/test/smartWallet/test-psm-integration.js @@ -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