Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Nov 13, 2023
1 parent 674bcca commit 69d7407
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cubejs-backend-shared/test/promises.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ describe('asyncMemoizeBackground', () => {
});

// Wait for promises running in the non-async timer callback to complete.
// From https://stackoverflow.com/a/58716087/308237
const flushPromises = () => new Promise(resolve => setImmediate(resolve));
const flushPromises = () => new Promise(jest.requireActual("timers").setImmediate);

test('asyncMemoizeBackground cache', async () => {
let called = 0;
Expand Down

0 comments on commit 69d7407

Please sign in to comment.