Skip to content

Commit 5a755c5

Browse files
committed
close file
1 parent 56507af commit 5a755c5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/test-all.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
name: Test All Packages
1616

17-
on: pull_request
17+
on: push
1818

1919
env:
2020
# make chromedriver detect installed Chrome version and download the corresponding driver
@@ -92,7 +92,8 @@ jobs:
9292
- name: Run unit tests
9393
# Ignore auth and firestore since they're handled in their own separate jobs.
9494
run: |
95-
xvfb-run yarn lerna run --ignore '{firebase-messaging-integration-test,@firebase/auth*,@firebase/firestore*,firebase-firestore-integration-test}' test:ci
95+
# xvfb-run yarn lerna run --ignore '{firebase-messaging-integration-test,@firebase/auth*,@firebase/firestore*,firebase-firestore-integration-test}' test:ci
96+
xvfb-run yarn lerna run --scope @firebase/data-connect
9697
node scripts/print_test_logs.js
9798
env:
9899
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}

scripts/emulator-testing/emulators/emulator.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,15 @@ export abstract class Emulator {
7575
const reader = resp.body.getReader();
7676
reader.read().then(function readChunk({ done, value }): any {
7777
if (done) {
78-
downloadComplete();
78+
console.log('Emulator download is done.')
79+
writer.close(err => {
80+
if (err) {
81+
downloadFailed(`Failed to close the downloaded emulator file: ${err}`);
82+
}
83+
84+
console.log('Closed downloaded emulator file.')
85+
downloadComplete();
86+
})
7987
} else {
8088
writer.write(value);
8189
return reader.read().then(readChunk);
@@ -92,7 +100,6 @@ export abstract class Emulator {
92100

93101
downloadPromise.then(
94102
() => {
95-
console.log('Download complete');
96103
// Change emulator binary file permission to 'rwxr-xr-x'.
97104
// The execute permission is required for it to be able to start
98105
// with 'java -jar'.

0 commit comments

Comments
 (0)