Accept a slightly different error message on timeout

Node 0.10 uses ESOCKETTIMEDOUT while 0.8 uses ETIMEDOUT
See http://travis-ci.org/CartoDB/Windshaft-cartodb/builds/19722727
This commit is contained in:
Sandro Santilli 2014-02-27 13:37:44 +01:00
parent 238e8f39f2
commit eec9933fb8

View File

@ -1160,7 +1160,7 @@ suite('multilayer', function() {
assert.ok(parsed.errors, 'Missing "errors" in response: ' + JSON.stringify(parsed));
assert.equal(parsed.errors.length, 1);
var msg = parsed.errors[0];
assert.equal(msg, 'Error: could not fetch source tables: ETIMEDOUT');
assert.ok(msg, /could not fetch source tables/, msg);
return null;
},
function finish(err) {