Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 14, 2024
1 parent 00fcc8d commit 1b1cd55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/countItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,14 @@ function populateMongo(client, callback) {
], cb), callback);
}

jest.setTimeout(120000);
jest.setTimeout(600000);
describe('CountItems', () => {
const oldEnv = process.env;
let client;
let metricsStub;

beforeAll(done => {
jest.useFakeTimers();
process.env = oldEnv;
process.env.MONGODB_DATABASE = dbName;
metricsStub = {
Expand All @@ -216,6 +217,7 @@ describe('CountItems', () => {
});

afterAll(done => {
jest.clearAllTimers();
async.series([
next => client.db.dropDatabase().then(() => next()).catch(() => next()),
next => client.close(next),
Expand Down

0 comments on commit 1b1cd55

Please sign in to comment.