Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Motti Bechhofer committed May 16, 2024
1 parent 14deba9 commit 9caa4ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/instrumentation-neo4j/src/neo4j.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
SEMATTRS_DB_OPERATION,
SEMATTRS_DB_STATEMENT,
SEMATTRS_DB_SYSTEM,
SemanticAttributes,
} from '@opentelemetry/semantic-conventions';
import { VERSION } from './version';
import type * as neo4j from 'neo4j-driver';
Expand Down
4 changes: 2 additions & 2 deletions packages/instrumentation-neo4j/test/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
SEMATTRS_DB_USER,
SEMATTRS_NET_PEER_NAME,
SEMATTRS_NET_PEER_PORT,
SemanticAttributes,
SEMATTRS_NET_TRANSPORT,
} from '@opentelemetry/semantic-conventions';
import { SpanKind, SpanStatusCode } from '@opentelemetry/api';

Expand All @@ -18,5 +18,5 @@ export const assertSpan = (span: ReadableSpan) => {
expect(span.attributes[SEMATTRS_DB_USER]).toEqual('neo4j');
expect(span.attributes[SEMATTRS_NET_PEER_NAME]).toEqual('localhost');
expect(span.attributes[SEMATTRS_NET_PEER_PORT]).toEqual(11011);
expect(span.attributes[SEMATTRS_NET_PEER_PORT]).toEqual('IP.TCP');
expect(span.attributes[SEMATTRS_NET_TRANSPORT]).toEqual('IP.TCP');
};
4 changes: 2 additions & 2 deletions packages/instrumentation-neo4j/test/neo4j.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import expect from 'expect';
import { context, ROOT_CONTEXT, SpanStatusCode, trace } from '@opentelemetry/api';
import { Neo4jInstrumentation } from '../src';
import { assertSpan } from './assert';
import { SemanticAttributes, SEMATTRS_DB_OPERATION, SEMATTRS_DB_STATEMENT } from '@opentelemetry/semantic-conventions';
import { SEMATTRS_DB_OPERATION, SEMATTRS_DB_STATEMENT } from '@opentelemetry/semantic-conventions';
import { normalizeResponse } from './test-utils';
import { map, mergeMap } from 'rxjs/operators';
import { concat } from 'rxjs';
Expand Down Expand Up @@ -34,7 +34,7 @@ describe('neo4j instrumentation', function () {
};

before(async () => {
driver = neo4j.driver('bolt://localhost:11011', neo4j.auth.basic('neo4j', 'test'), {
driver = neo4j.driver('bolt://localhost:11011', neo4j.auth.basic('neo4j', 'your_password'), {
disableLosslessIntegers: true,
});

Expand Down

0 comments on commit 9caa4ed

Please sign in to comment.