Fixing test case.

This commit is contained in:
mike12345567 2022-04-27 22:57:03 +01:00
parent 2865d6531c
commit a2c6917bfa
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ exports.getCouchInfo = () => {
} else if (urlInfo.auth.username) {
// set from url
username = urlInfo.auth.username
} else {
} else if (!env.isTest()) {
throw new Error("CouchDB username not set")
}
if (env.COUCH_DB_PASSWORD) {
@ -42,7 +42,7 @@ exports.getCouchInfo = () => {
} else if (urlInfo.auth.password) {
// set from url
password = urlInfo.auth.password
} else {
} else if (!env.isTest()) {
throw new Error("CouchDB password not set")
}
const authCookie = Buffer.from(`${username}:${password}`).toString("base64")