Skip to content

Commit 2de2f9c

Browse files
JSMonkpaulmillr
authored andcommitted
test: Add testing of Node.js v12 in Travis pipeline. (#833)
* test: Add testing of Node.js v12 in Travis pipeline. * test: Fix pending tests for virtual machine inside Travis.
1 parent 9e0965a commit 2de2f9c

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "11"
3+
- "12"
44
- "10"
55
- "8"
66
os:

test.js

+9-10
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,17 @@ const runTests = function(baseopts) {
172172

173173
await waitForWatcher(watcher);
174174

175-
(async () => {
176-
for (let path of paths.slice(0, 5)) {
177-
await write(path, Date.now());
178-
}
179-
await delay(100);
180-
for (let path of paths.slice(5)) {
181-
await write(path, Date.now());
182-
}
183-
delay();
184-
})();
175+
for (let path of paths.slice(0, 5)) {
176+
await write(path, Date.now());
177+
}
178+
await delay(100);
179+
for (let path of paths.slice(5)) {
180+
await write(path, Date.now());
181+
}
185182

186183
await waitFor([[spy, 4]]);
187184
await waitFor([[spy, 9]]);
185+
await delay(1000);
188186
paths.forEach(path => {
189187
spy.should.have.been.calledWith(path);
190188
});
@@ -281,6 +279,7 @@ const runTests = function(baseopts) {
281279
await waitFor([[spy, 11]]);
282280
await waitFor([[spy, 22]]);
283281
await waitFor([[spy, 33]]);
282+
await delay(1000);
284283

285284
spy.should.have.been.calledWith(test1Path);
286285
spy.should.have.been.calledWith(test2Path);

0 commit comments

Comments
 (0)