Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: move timer-dependent test to sequential
Timer-dependent tests fail frequently on certain platforms in CI when
run in parallel with other tests, likely due to competition for
resources. Move test-repl-timeout-throw to sequential to avoid this
problem. Also did some minor refactoring (var->const and more use of
assert.strictEqual of looser assertions).
  • Loading branch information
Trott committed Nov 3, 2016
commit b59784e8137981b2872ab38c14481adf76c63de4
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';
const common = require('../common');
var assert = require('assert');
const assert = require('assert');

var spawn = require('child_process').spawn;
const spawn = require('child_process').spawn;

var child = spawn(process.execPath, [ '-i' ], {
const child = spawn(process.execPath, [ '-i' ], {
stdio: [null, null, 2]
});

Expand Down Expand Up @@ -52,8 +52,8 @@ child.stdout.once('data', function() {
});

child.on('close', function(c) {
assert(!c);
assert.strictEqual(c, 0);
// make sure we got 3 throws, in the end.
var lastLine = stdout.trim().split(/\r?\n/).pop();
assert.equal(lastLine, '> 3');
assert.strictEqual(lastLine, '> 3');
});