Skip to content

Commit

Permalink
fixup! fix: Properly synchronize slog sender termination
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Mar 1, 2025
1 parent 99699ba commit 93ae92c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/telemetry/test/flight-recorder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const bufferTests = test.macro(
circularBufferFilename: tmpFile,
});
const slogSender = makeSlogSenderFromBuffer({ fileHandle, writeCircBuf });
t.teardown(slogSender.shutdown);
slogSender({ type: 'start' });
await slogSender.forceFlush();
t.is(fs.readFileSync(tmpFile, { encoding: 'utf8' }).length, BUFFER_SIZE);
Expand Down

0 comments on commit 93ae92c

Please # to comment.