Skip to content

Commit de676d9

Browse files
committed
build: fix datastore-lock test by pinning cloud-sdk docker image
google/cloud-sdk:latest fails with timeout but google/cloud-sdk:510.0.0 works.
1 parent 86e9044 commit de676d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/datastore-lock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Distributed lock backed by Google Cloud Datastore",
55
"scripts": {
66
"compile": "tsc -p .",
7-
"pretest": "npm run compile && docker pull google/cloud-sdk",
7+
"pretest": "npm run compile && docker pull google/cloud-sdk:510.0.0",
88
"prepare": "npm run compile",
99
"test": "cross-env NODE_ENV=test LOG_LEVEL=fatal c8 mocha --node-option no-experimental-fetch ./build/test",
1010
"fix": "gts fix",

packages/datastore-lock/test/datastore-lock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('datastore-lock', () => {
3232
nock.enableNetConnect('localhost');
3333
const options = {
3434
useDocker: true,
35+
dockerImage: 'google/cloud-sdk:510.0.0',
3536
};
3637

3738
emulator = new DataStoreEmulator(options);

0 commit comments

Comments
 (0)