Skip to content

Commit 7611423

Browse files
committed
Try to fix flakiness in the tests
1 parent 17f49b6 commit 7611423

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/e2e/UserInformation.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
extraData,
1111
parametrizedTLNetworkConfig,
1212
requestEth,
13+
rpcProvider,
1314
wait
1415
} from '../Fixtures'
1516

@@ -99,7 +100,8 @@ describe('e2e', () => {
99100
user2.address,
100101
bigTrustlineValue / 2
101102
)
102-
await tl1.payment.confirm(transfer1.rawTx)
103+
const txHash = await tl1.payment.confirm(transfer1.rawTx)
104+
await rpcProvider.waitForTransaction(txHash, 1)
103105
await wait()
104106

105107
// apply accrued userInformation to trustline via transfer
@@ -108,7 +110,8 @@ describe('e2e', () => {
108110
user1.address,
109111
1
110112
)
111-
await tl2.payment.confirm(transfer2.rawTx)
113+
const txHash1 = await tl2.payment.confirm(transfer2.rawTx)
114+
await rpcProvider.waitForTransaction(txHash1, 1)
112115
await wait()
113116
})
114117

0 commit comments

Comments
 (0)