Update for node 4 testing.

Changes to .travis.yml
Patch from @dceejay to make a test portable
Patch from @dceejay to correct a case where an int was expected
This commit is contained in:
Edward Vielmetti 2015-09-08 15:32:57 -04:00
parent f9e0420647
commit 005a98d020
3 changed files with 17 additions and 2 deletions

View File

@ -1,8 +1,23 @@
sudo: false
language: node_js
env:
- CXX="g++-4.8"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- gcc-4.8
matrix:
allow_failures:
- node_js: "4.1.0"
before_install:
- npm install -g npm@~1.4.18
# node_js 4.1.0 is brand new
node_js:
- "4.1.0"
- "4.0.0"
- "0.12"
- "0.10"
script:

View File

@ -64,7 +64,7 @@ module.exports = function(RED) {
else if (node.op1Templated) { msg.payload = mustache.render(node.op1,msg); }
else { msg.payload = node.op1; }
if (node.op1type !== "nul") { node.send(msg); }
if (node.duration === 0) { tout = "infinite"; }
if (node.duration === 0) { tout = 0; }
else {
tout = setTimeout(function() {
msg.payload = m2;

View File

@ -457,7 +457,7 @@ describe('file Nodes', function() {
logEvents.should.have.length(1);
logEvents[0][0].should.have.a.property('msg');
//logEvents[0][0].msg.toString().should.equal("Error: ENOENT, open 'badfile'");
logEvents[0][0].msg.toString().should.startWith("Error: ENOENT, open");
logEvents[0][0].msg.toString().should.startWith("Error: ENOENT");
done();
},wait);
n1.receive({payload:""});