Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Address review comments.

  • Loading branch information...
commit 087c8530abfe5c5d2d4e2b3f7991818243c4ba62 1 parent 85cb5a3
@Mossop authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test-unit-test.js
View
4 test/test-unit-test.js
@@ -117,6 +117,7 @@ exports.testWaitUntilTimeoutInCallback = function(test) {
test.waitUntilDone(1000);
let expected = [];
+ let message = 0;
if (require("@test/options").parseable) {
expected.push(["print", "TEST-START | wait4ever\n"]);
expected.push(["error", "fail:", "Timed out"]);
@@ -135,9 +136,10 @@ exports.testWaitUntilTimeoutInCallback = function(test) {
return;
}
+ message++;
let expectedArgs = expected.shift().slice(1);
for (let i = 0; i < expectedArgs.length; i++)
- test.assertEqual(args[i], expectedArgs[i]);
+ test.assertEqual(args[i], expectedArgs[i], "Should have seen the right message in argument " + i + " of message " + message);
if (expected.length == 0)
test.done();
}
Please sign in to comment.
Something went wrong with that request. Please try again.