Skip to content

Commit

Permalink
Merge branch 'master' into revert-373-revert-320-spp--bucket-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Oct 8, 2018
2 parents b3e501a + 951bc83 commit ae64919
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- run: *npm_install_and_link
- run:
name: Run system tests.
command: npm run system-test
command: mkdir $HOME/.config && npm run system-test
environment:
GCLOUD_PROJECT: long-door-651
GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json
Expand Down
7 changes: 7 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build')
s.copy(templates)

# Create .config directory under $HOME to get around permissions issues
# with resumable upload.
s.replace(
".circleci/config.yml",
"command: npm run system-test",
"command: mkdir $HOME/.config && npm run system-test")
7 changes: 5 additions & 2 deletions system-test/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ describe('storage', () => {
// for the key file.
let key2 = process.env.GCN_STORAGE_2ND_PROJECT_KEY;
if (key2 && key2.charAt(0) === '.') {
key2 = `${__dirname}/../${key2}`;
key2 = `${__dirname}/../../${key2}`;
}

// Get the service account for the "second" account (the
Expand Down Expand Up @@ -1381,7 +1381,10 @@ describe('storage', () => {

it('file#createResumableUpload', doubleTest((options, done) => {
file.createResumableUpload(options, (err, uri) => {
assert.ifError(err);
if (err) {
done(err);
return;
}

file.createWriteStream({uri})
.on('error', done)
Expand Down

0 comments on commit ae64919

Please sign in to comment.