Skip to content

Commit

Permalink
Unref server
Browse files Browse the repository at this point in the history
  • Loading branch information
mhennoch committed Sep 20, 2024
1 parent 120891f commit ac6765d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions test/instrumentation/redis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,19 @@ describe('Redis instrumentation', () => {
redisServer.listen(6379);
});

after(() => {
after( async () => {

Check failure on line 52 in test/instrumentation/redis.test.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
redisServer.close();
redisServer.unref();
});

beforeEach(() => {
utils.cleanEnvironment();
exporter = new InMemorySpanExporter();
});

afterEach(() => {
afterEach( async () => {

Check failure on line 62 in test/instrumentation/redis.test.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
utils.cleanEnvironment();
stopTracing();
await stopTracing();
});

const testOpts = () => ({
Expand Down
2 changes: 1 addition & 1 deletion test/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ exec(command, (error, stdout, stderr) => {
}

if (error) {
console.error(`ErrorExec: ${error.code} - ${error.message}`);
console.error(`Error: ${error.code} - ${error.message}`);
}
});

0 comments on commit ac6765d

Please sign in to comment.