Fix test cases on windows and under proxy

This commit is contained in:
nakanishi
2018-07-27 15:40:55 +09:00
parent 4e549dd426
commit 66fca8710e
4 changed files with 44 additions and 43 deletions

View File

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