From 51d2cb4ecf1ff16d52cd83dfadbb3e459760de95 Mon Sep 17 00:00:00 2001 From: Adam Davis Date: Thu, 28 Mar 2019 14:44:23 +0000 Subject: [PATCH] make cli autocannon test run for 2s (#145) --- test/cli-doctor-full.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli-doctor-full.test.js b/test/cli-doctor-full.test.js index 922448a..8169cac 100644 --- a/test/cli-doctor-full.test.js +++ b/test/cli-doctor-full.test.js @@ -117,7 +117,7 @@ test('clinic doctor --on-port', function (t) { test('clinic doctor --autocannon', function (t) { cli({ relayStderr: false }, [ 'clinic', 'doctor', '--no-open', - '--autocannon', '[', '/', '-d', '1', ']', + '--autocannon', '[', '/', '-d', '2', ']', '--', 'node', '-e', ` const http = require('http') @@ -125,7 +125,7 @@ test('clinic doctor --autocannon', function (t) { ` ], function (err, stdout, stderr) { t.ifError(err) - t.ok(stderr.indexOf('Running 1s test @ http://localhost:') > -1) + t.ok(stderr.indexOf('Running 2s test @ http://localhost:') > -1) t.strictEqual(stdout.split('\n')[0], 'Analysing data') t.end() })