Skip to content

Commit

Permalink
chore: fix failing tests (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Mar 25, 2024
1 parent 9b8338e commit 9e2eb83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/votesReport.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import request from 'supertest';
import VotesReport from '../../src/lib/votesReport';
import { storageEngine } from '../../src/helpers/utils';
import { storageEngine, sleep } from '../../src/helpers/utils';
import { rmSync } from 'fs';

const HOST = `http://localhost:${process.env.PORT || 3003}`;
Expand Down Expand Up @@ -41,6 +41,7 @@ describe('GET /api/votes/:id', () => {

const votesReport = new VotesReport(id, storage);
expect(typeof (await votesReport.getCache())).not.toBe(false);
await sleep(parseInt(process.env.QUEUE_INTERVAL || '15e3'));
});
});

Expand Down

0 comments on commit 9e2eb83

Please sign in to comment.