1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Extend timeout for the test case of installing non-existant path. (#1191)

to fix timeout on slower hosts
This commit is contained in:
Kazuki-Nakanishi 2017-03-10 13:59:44 +00:00 committed by Dave Conway-Jones
parent 5356373681
commit 3cc4173399

View File

@ -124,6 +124,7 @@ describe('nodes/registry/installer', function() {
});
});
it("rejects when non-existant path is provided", function(done) {
this.timeout(10000);
var resourcesDir = path.resolve(path.join(__dirname,"..","resources","local","TestNodeModule","node_modules","NonExistant"));
installer.installModule(resourcesDir).then(function() {
done(new Error("Unexpected success"));