We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7a162 commit 522654aCopy full SHA for 522654a
1 file changed
test/pipe/sequence.js
@@ -352,7 +352,9 @@ if (isLinux) {
352
const pipePromise = source.pipe(destination);
353
t.is(await t.throwsAsync(pipePromise), await t.throwsAsync(source));
354
t.like(await destination, {stdout: 'y'});
355
- t.like(await t.throwsAsync(source), {exitCode: 1, stderr: 'yes: standard output: Connection reset by peer'});
+ const sourceError = await t.throwsAsync(source);
356
+ t.is(sourceError.exitCode, 1);
357
+ t.regex(sourceError.stderr, /^yes: standard output: (?:Broken pipe|Connection reset by peer)$/);
358
359
t.false(source.stdout.readableEnded);
360
t.is(source.stdout.errored, null);
0 commit comments