Skip to content

Commit dde8001

Browse files
committed
Use a 'HTTPBasicAuthentication' as a default authentication system for tests
1 parent 14e7c76 commit dde8001

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/root.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ module.exports = (callback, options) => {
6363
}
6464
setTimeout(() => callback(false, 'Timeout'), options.timeout);
6565

66-
const server = new webdav.WebDAVServer();
66+
const server = new webdav.WebDAVServer({
67+
httpAuthentication: new webdav.HTTPBasicAuthentication('default realm')
68+
});
6769
server.start(options.port + this.index, () => {
6870
fn(callback, server);
6971
})

0 commit comments

Comments
 (0)