Skip to content

Commit

Permalink
test: Add testing of Node.js v12 in Travis pipeline. (#833)
Browse files Browse the repository at this point in the history
* test: Add testing of Node.js v12 in Travis pipeline.

* test: Fix pending tests for virtual machine inside Travis.
  • Loading branch information
JSMonk authored and paulmillr committed Apr 26, 2019
1 parent 9e0965a commit 2de2f9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "11"
- "12"
- "10"
- "8"
os:
Expand Down
19 changes: 9 additions & 10 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,19 +172,17 @@ const runTests = function(baseopts) {

await waitForWatcher(watcher);

(async () => {
for (let path of paths.slice(0, 5)) {
await write(path, Date.now());
}
await delay(100);
for (let path of paths.slice(5)) {
await write(path, Date.now());
}
delay();
})();
for (let path of paths.slice(0, 5)) {
await write(path, Date.now());
}
await delay(100);
for (let path of paths.slice(5)) {
await write(path, Date.now());
}

await waitFor([[spy, 4]]);
await waitFor([[spy, 9]]);
await delay(1000);
paths.forEach(path => {
spy.should.have.been.calledWith(path);
});
Expand Down Expand Up @@ -281,6 +279,7 @@ const runTests = function(baseopts) {
await waitFor([[spy, 11]]);
await waitFor([[spy, 22]]);
await waitFor([[spy, 33]]);
await delay(1000);

spy.should.have.been.calledWith(test1Path);
spy.should.have.been.calledWith(test2Path);
Expand Down

0 comments on commit 2de2f9c

Please sign in to comment.