Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix: fix transaction live test for credit-only accounts (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg authored and mvines committed Jun 29, 2019
1 parent 763e344 commit e752e87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit e752e87

Please sign in to comment.