Skip to content

Commit

Permalink
Fixed the tests for node.js:5 and node.js:4
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 26, 2017
1 parent 6e58ac6 commit b43ba41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/v2/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ module.exports = (callback, options) => {
else
cb(arg1, arg2, arg3);
},
startServer: (options, autoStart = true) => {
startServer: (options, autoStart) => {
options = options ? options : {};
options.port = info.port + info.servers.length;
const startServer = new webdav.WebDAVServer(options);
if(autoStart)
if(autoStart || autoStart === undefined || autoStart === null)
startServer.start();
info.servers.push(startServer);
return startServer;
Expand Down

0 comments on commit b43ba41

Please sign in to comment.