Skip to content

Commit 90dbd8f

Browse files
committed
fix(tests): use a promise for getting config
1 parent 141ae65 commit 90dbd8f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/cli-repl/src/cli-repl.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ describe('CliRepl', function () {
14501450
cliRepl.config.logRetentionDays = testRetentionDays;
14511451
await cliRepl.start(await testServer.connectionString(), {});
14521452

1453-
expect(cliRepl.getConfig('logRetentionDays')).equals(
1453+
expect(await cliRepl.getConfig('logRetentionDays')).equals(
14541454
testRetentionDays
14551455
);
14561456
expect(cliRepl.logManager?._options.retentionDays).equals(

packages/e2e-tests/test/e2e.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,9 @@ describe('e2e', function () {
17221722
const globalConfig = path.join(homedir, 'globalconfig.conf');
17231723
await fs.writeFile(
17241724
globalConfig,
1725-
`mongosh:\n logLocation: "${customLogDir.path}"\n logRetentionDays: ${retentionDays}`
1725+
`mongosh:\n logLocation: ${JSON.stringify(
1726+
customLogDir.path
1727+
)}\n logRetentionDays: ${retentionDays}`
17261728
);
17271729

17281730
expect(await getFilesState(paths)).equals('1111111111');

0 commit comments

Comments
 (0)