Skip to content

Commit

Permalink
test: increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Richter committed Mar 22, 2020
1 parent 5e694ff commit f97687a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/subprocess.test.js
@@ -1,12 +1,12 @@
'use strict';

const { promisify } = require('util');

const assert = require('assertive');

const sub = require('../lib/subprocess');

const delay = promisify(setTimeout);
function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}

let currentProcesses = null;

Expand Down Expand Up @@ -137,7 +137,7 @@ describe('subprocess', () => {
// wait a little bit for the process
// to actually write out to the log file;
// yes, arbitrary delays are bad
await delay(100);
await delay(500);

const log = await processes.app.readLog();
assert.include('100', log);
Expand Down

0 comments on commit f97687a

Please sign in to comment.