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"));

View File

@@ -287,7 +287,7 @@ describe("storage/localfilesystem/projects/ssh", function() {
});
it('should generate sshkey file with size data', function(done) {
this.timeout(10000);
this.timeout(20000);
var sshkeyDirPath = path.join(userDir, 'projects', '.sshkeys');
var username = 'test';
var options = {
@@ -311,7 +311,7 @@ describe("storage/localfilesystem/projects/ssh", function() {
});
it('should generate sshkey file with password & size data', function(done) {
this.timeout(10000);
this.timeout(20000);
var sshkeyDirPath = path.join(userDir, 'projects', '.sshkeys');
var username = 'test';
var options = {