Skip to content

Commit 1110ddc

Browse files
committed
fix bug with loud error in graph test
1 parent 0f60759 commit 1110ddc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/src/commands/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ export default class TestCommand extends Command {
113113
}
114114

115115
if (opts.docker) {
116-
runDocker.bind(this)(datasource, opts);
116+
await runDocker.bind(this)(datasource, opts);
117117
} else {
118-
runBinary.bind(this)(datasource, opts);
118+
await runBinary.bind(this)(datasource, opts);
119119
}
120120
}
121121
}
@@ -190,7 +190,7 @@ async function runBinary(
190190
const child = spawn(binPath, args, { stdio: 'inherit' });
191191
const [code] = await events.once(child, 'exit');
192192
if (code !== 0) {
193-
this.error('Matchstick failed', { exit: 1 });
193+
this.error('Matchstick exited with an error', { exit: 1 });
194194
}
195195
}
196196

0 commit comments

Comments
 (0)