From 28584a01db4d0828e179a1b241bfba3d4d6dab8a Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 27 Apr 2022 22:57:03 +0100 Subject: [PATCH] Fixing test case. --- packages/backend-core/src/db/pouch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/src/db/pouch.js b/packages/backend-core/src/db/pouch.js index 2a6c27b6db..9c1ada8d76 100644 --- a/packages/backend-core/src/db/pouch.js +++ b/packages/backend-core/src/db/pouch.js @@ -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")