Skip to content

Commit

Permalink
reporting: destroy streams in afterEach
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 23, 2024
1 parent a928e6e commit 209853a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x-pack/plugins/reporting/server/lib/content_stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ describe('ContentStream', () => {
);
});

afterEach(() => {
stream.destroy();
base64Stream.destroy();
});

describe('read', () => {
it('should perform a search using index and the document id', async () => {
await new Promise((resolve) => stream.once('data', resolve));
Expand Down

0 comments on commit 209853a

Please sign in to comment.