test: Remove unnecessary setTimeout and reconfigureServer calls (#9183)

This commit is contained in:
Diamond Lewis
2024-07-08 16:05:43 -05:00
committed by GitHub
parent 28c4330c89
commit a6e0a1d4a6
6 changed files with 35 additions and 85 deletions

View File

@@ -30,10 +30,10 @@ describe_only_db('mongo')('Parse.Query with comment testing', () => {
database = client.db('parseServerMongoAdapterTestDatabase');
let profiler = await database.command({ profile: 0 });
expect(profiler.was).toEqual(0);
console.log(`Disabling profiler : ${profiler.was}`);
// console.log(`Disabling profiler : ${profiler.was}`);
profiler = await database.command({ profile: profileLevel });
profiler = await database.command({ profile: -1 });
console.log(`Enabling profiler : ${profiler.was}`);
// console.log(`Enabling profiler : ${profiler.was}`);
profiler = await database.command({ profile: -1 });
expect(profiler.was).toEqual(profileLevel);
});