Skip to content

Commit 5bf40c4

Browse files
committed
update test
1 parent 58f815b commit 5bf40c4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugins/node/opentelemetry-instrumentation-pg/test/utils.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { PgInstrumentationConfig } from '../src';
3131
import { AttributeNames } from '../src/enums/AttributeNames';
3232
import { PgClientExtended, PgPoolOptionsParams } from '../src/internal-types';
3333
import * as utils from '../src/utils';
34-
import { SEMATTRS_NET_PEER_PORT } from '@opentelemetry/semantic-conventions';
34+
import { ATTR_NETWORK_PEER_PORT } from '@opentelemetry/semantic-conventions';
3535

3636
const memoryExporter = new InMemorySpanExporter();
3737

@@ -206,7 +206,7 @@ describe('utils.ts', () => {
206206
port: Infinity,
207207
},
208208
SemconvStability.STABLE
209-
)[SEMATTRS_NET_PEER_PORT],
209+
)[ATTR_NETWORK_PEER_PORT],
210210
undefined
211211
);
212212
assert.strictEqual(
@@ -215,7 +215,7 @@ describe('utils.ts', () => {
215215
port: -Infinity,
216216
},
217217
SemconvStability.STABLE
218-
)[SEMATTRS_NET_PEER_PORT],
218+
)[ATTR_NETWORK_PEER_PORT],
219219
undefined
220220
);
221221
assert.strictEqual(
@@ -224,7 +224,7 @@ describe('utils.ts', () => {
224224
port: NaN,
225225
},
226226
SemconvStability.STABLE
227-
)[SEMATTRS_NET_PEER_PORT],
227+
)[ATTR_NETWORK_PEER_PORT],
228228
undefined
229229
);
230230
assert.strictEqual(
@@ -233,7 +233,7 @@ describe('utils.ts', () => {
233233
port: 1.234,
234234
},
235235
SemconvStability.STABLE
236-
)[SEMATTRS_NET_PEER_PORT],
236+
)[ATTR_NETWORK_PEER_PORT],
237237
undefined
238238
);
239239
});
@@ -245,7 +245,7 @@ describe('utils.ts', () => {
245245
port: 1234,
246246
},
247247
SemconvStability.STABLE
248-
)[SEMATTRS_NET_PEER_PORT],
248+
)[ATTR_NETWORK_PEER_PORT],
249249
1234
250250
);
251251
assert.strictEqual(
@@ -254,7 +254,7 @@ describe('utils.ts', () => {
254254
port: Number.MAX_VALUE,
255255
},
256256
SemconvStability.STABLE
257-
)[SEMATTRS_NET_PEER_PORT],
257+
)[ATTR_NETWORK_PEER_PORT],
258258
Number.MAX_VALUE
259259
);
260260
});

0 commit comments

Comments
 (0)