Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtality committed Sep 24, 2024
1 parent 5295af9 commit 6439cd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 733 deletions.
8 changes: 4 additions & 4 deletions test/chains/ethereum/ethereum.controllers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const mockAddress = '0xFaA12FD102FE8623C9299c72B03E45107F2772B5'; // noqa: mock
describe('init', () => {
it('should wait for the first init() call to finish in future immediate init() calls', async () => {
let firstCallFullfilled = false;
eth.init().then(() => {
const initPromise = eth.init().then(() => {
firstCallFullfilled = true;
});
await eth.init().then(() => {
expect(firstCallFullfilled).toEqual(true);
});
await eth.init();
await initPromise;
expect(firstCallFullfilled).toEqual(true);
});
});

Expand Down
Loading

0 comments on commit 6439cd2

Please sign in to comment.