From 0b3d8064413c559ec276017267bab42b58743fbc Mon Sep 17 00:00:00 2001 From: Gustavo Henke Date: Mon, 27 Aug 2018 01:12:54 +1000 Subject: [PATCH] bin: delay command in test that should be successful Fixes flaky test introduced by a9ef086 --- bin/concurrently.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/concurrently.spec.js b/bin/concurrently.spec.js index 23656530..c9b40e7c 100644 --- a/bin/concurrently.spec.js +++ b/bin/concurrently.spec.js @@ -127,7 +127,7 @@ describe('exiting conditions', () => { }); it('is aliased to -s', done => { - run('-s last "exit 1" "echo foo"') + run('-s last "exit 1" "sleep 0.5 && echo foo"') .close .subscribe(exit => { expect(exit[0]).toBe(0);