fix: fix transaction live test for credit-only accounts (#385)
This commit is contained in:
parent
b22c39018f
commit
eb56da4a94
|
@ -480,6 +480,11 @@ test('transaction', async () => {
|
|||
result: 31,
|
||||
},
|
||||
]);
|
||||
if (!mockRpcEnabled) {
|
||||
// Credit-only account credits are committed at the end of every slot;
|
||||
// this sleep is to ensure a full slot has elapsed
|
||||
await sleep((1000 * DEFAULT_TICKS_PER_SLOT) / NUM_TICKS_PER_SECOND);
|
||||
}
|
||||
expect(await connection.getBalance(accountTo.publicKey)).toBe(31);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue