Skip to content

Commit 8a256e0

Browse files
committed
refactor: test
1 parent 31bf0de commit 8a256e0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

observability-test/database.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ describe('Database', () => {
503503
});
504504

505505
describe('getSnapshot', () => {
506-
let fakePool: FakeSessionPool;
507506
let fakeSessionFactory: FakeSessionFactory;
508507
let fakeSession: FakeSession;
509508
let fakeMultiplexedSession: FakeMultiplexedSession;
@@ -564,15 +563,15 @@ describe('Database', () => {
564563
);
565564

566565
// Ensure that the span actually produced an error that was recorded.
567-
const firstSpan = spans[0];
566+
const span = spans[0];
568567
assert.strictEqual(
569568
SpanStatusCode.ERROR,
570-
firstSpan.status.code,
569+
span.status.code,
571570
'Expected an ERROR span status'
572571
);
573572
assert.strictEqual(
574573
'our snapshot error',
575-
firstSpan.status.message,
574+
span.status.message,
576575
'Mismatched span status message'
577576
);
578577

0 commit comments

Comments
 (0)