Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/mongodb-log-writer/src/mongo-log-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ describe('MongoLogManager', function () {

const writer = await manager.createLogWriter();
expect(writer.logFilePath as string).to.match(/custom_/);

writer.end();
await once(writer, 'finish');
});

it('cleans up old log files when requested', async function () {
Expand Down Expand Up @@ -577,7 +580,9 @@ describe('MongoLogManager', function () {
},
close: sinon.stub().resolves(),
};
const opendirStub = sinon.stub(fs, 'opendir').resolves(fakeDirHandle as any);
const opendirStub = sinon
.stub(fs, 'opendir')
.resolves(fakeDirHandle as any);

retentionDays = 0.000001; // 86.4 ms
const manager = new MongoLogManager({
Expand Down