Skip to content

Commit a2030a0

Browse files
committed
resolve comments
1 parent 6f6bc4a commit a2030a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/tools/src/snap-test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ async function runTestCase(name: string, tempTmpDir: string, casesDir: string) {
153153
for (const command of steps.commands) {
154154
debug('running command: %s, cwd: %s, env: %o', command, caseTmpDir, env);
155155

156-
/// While `@yarnpkg/shell` supports capturing output via in-memory `Writable` streams,
157-
/// it seems not to have stable ordering of stdout/stderr chunks.
158-
/// To ensure stable ordering, we redirect outputs to a file instead.
156+
// While `@yarnpkg/shell` supports capturing output via in-memory `Writable` streams,
157+
// it seems not to have stable ordering of stdout/stderr chunks.
158+
// To ensure stable ordering, we redirect outputs to a file instead.
159159
const outputStreamPath = path.join(caseTmpDir, 'output.log');
160160
const outputStream = await open(outputStreamPath, 'w');
161161

@@ -173,7 +173,7 @@ async function runTestCase(name: string, tempTmpDir: string, casesDir: string) {
173173
},
174174
});
175175

176-
outputStream.close();
176+
await outputStream.close();
177177

178178
const output = readFileSync(outputStreamPath, 'utf-8');
179179

0 commit comments

Comments
 (0)