Skip to content

Commit 0114cd7

Browse files
committed
fix: system test against emulator
1 parent 6428bcd commit 0114cd7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/system-tests-against-emulator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
node-version: 18
2323
- run: node --version
24+
- run: gcloud --version
2425
- run: npm install
2526
- run: npm run system-test
2627
env:

system-test/spanner.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,8 @@ describe('Spanner', () => {
24112411
assert.ifError(err);
24122412
assert.strictEqual(metadata!.name, database.formattedName_);
24132413
assert.strictEqual(metadata!.state, 'READY');
2414+
console.log(`line 2414: ${IS_EMULATOR_ENABLED}`);
2415+
console.log(`line 2415: ${process.env.SPANNER_EMULATOR_HOST}`);
24142416
if (IS_EMULATOR_ENABLED) {
24152417
assert.strictEqual(
24162418
metadata!.databaseDialect,
@@ -2424,10 +2426,14 @@ describe('Spanner', () => {
24242426
};
24252427

24262428
it('GOOGLE_STANDARD_SQL should have created the database', done => {
2429+
console.log(`line 2429: ${IS_EMULATOR_ENABLED}`);
2430+
console.log(`line 2430: ${process.env.SPANNER_EMULATOR_HOST}`);
24272431
createDatabase(done, DATABASE, 'GOOGLE_STANDARD_SQL');
24282432
});
24292433

24302434
it('POSTGRESQL should have created the database', done => {
2435+
console.log(`line 2435: ${IS_EMULATOR_ENABLED}`);
2436+
console.log(`line 2436: ${process.env.SPANNER_EMULATOR_HOST}`);
24312437
createDatabase(done, PG_DATABASE, 'POSTGRESQL');
24322438
});
24332439

0 commit comments

Comments
 (0)