Skip to content

Commit

Permalink
refactor: test
Browse files Browse the repository at this point in the history
  • Loading branch information
alkatrivedi committed Jan 9, 2025
1 parent 31bf0de commit 7cf1d60
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions observability-test/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ describe('Database', () => {
});

describe('getSnapshot', () => {
let fakePool: FakeSessionPool;
let fakeSessionFactory: FakeSessionFactory;
let fakeSession: FakeSession;
let fakeMultiplexedSession: FakeMultiplexedSession;
Expand Down Expand Up @@ -564,15 +563,15 @@ describe('Database', () => {
);

// Ensure that the span actually produced an error that was recorded.
const firstSpan = spans[0];
const span = spans[0];
assert.strictEqual(
SpanStatusCode.ERROR,
firstSpan.status.code,
span.status.code,
'Expected an ERROR span status'
);
assert.strictEqual(
'our snapshot error',
firstSpan.status.message,
span.status.message,
'Mismatched span status message'
);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@google-cloud/spanner",
"description": "Cloud Spanner Client Library for Node.js",
"version": "7.17.1",
"version": "7.16.0",
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@google-cloud/kms": "^4.0.0",
"@google-cloud/precise-date": "^4.0.0",
"@google-cloud/spanner": "^7.17.1",
"@google-cloud/spanner": "^7.16.0",
"protobufjs": "^7.0.0",
"yargs": "^17.0.0"
},
Expand Down

0 comments on commit 7cf1d60

Please sign in to comment.