diff --git a/experimental/packages/otlp-grpc-exporter-base/test/otlp-grpc-configuration.test.ts b/experimental/packages/otlp-grpc-exporter-base/test/otlp-grpc-configuration.test.ts index a2e6f0f8ae8..85652af5f87 100644 --- a/experimental/packages/otlp-grpc-exporter-base/test/otlp-grpc-configuration.test.ts +++ b/experimental/packages/otlp-grpc-exporter-base/test/otlp-grpc-configuration.test.ts @@ -18,7 +18,7 @@ import * as sinon from 'sinon'; import * as assert from 'assert'; import { validateAndNormalizeUrl } from '../src/configuration/otlp-grpc-configuration'; -describe('validateAndNormalizeUrl()', () => { +describe('validateAndNormalizeUrl()', function () { const tests = [ { name: 'bare hostname should return same value', @@ -66,7 +66,7 @@ describe('validateAndNormalizeUrl()', () => { }, ]; tests.forEach(test => { - it(test.name, () => { + it(test.name, function () { const diagWarn = sinon.stub(diag, 'warn'); try { assert.strictEqual(validateAndNormalizeUrl(test.input), test.expected);