diff --git a/test/instrumentation/redis.test.ts b/test/instrumentation/redis.test.ts index 0d2d71d9..a4bc59b3 100644 --- a/test/instrumentation/redis.test.ts +++ b/test/instrumentation/redis.test.ts @@ -49,8 +49,9 @@ describe('Redis instrumentation', () => { redisServer.listen(6379); }); - after(() => { + after( async () => { redisServer.close(); + redisServer.unref(); }); beforeEach(() => { @@ -58,9 +59,9 @@ describe('Redis instrumentation', () => { exporter = new InMemorySpanExporter(); }); - afterEach(() => { + afterEach( async () => { utils.cleanEnvironment(); - stopTracing(); + await stopTracing(); }); const testOpts = () => ({ diff --git a/test/runner.js b/test/runner.js index eb1eb7f2..d19886e6 100644 --- a/test/runner.js +++ b/test/runner.js @@ -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}`); } });