From 0d4862538b08d2021b0a7ab86d05cf51fb358127 Mon Sep 17 00:00:00 2001 From: m5r Date: Mon, 2 Dec 2024 18:12:58 +0100 Subject: [PATCH] fix monitoring unit test --- api/tests/mocha/services/monitoring.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tests/mocha/services/monitoring.spec.js b/api/tests/mocha/services/monitoring.spec.js index efc9f38fa0..31c369e02a 100644 --- a/api/tests/mocha/services/monitoring.spec.js +++ b/api/tests/mocha/services/monitoring.spec.js @@ -69,7 +69,6 @@ const VIEW_INDEXES_BY_DB = { 'medic-admin', 'medic-client', 'medic-conflicts', - 'medic-nouveau', 'medic-scripts', 'medic-sms', ], @@ -251,6 +250,7 @@ const getExpectedViewIndexes = (dbName) => { const getCurrentDdocNames = (db) => getBundledDdocs(db) .then(ddocs => ddocs + .filter(ddoc => !!ddoc.views) .map(ddoc => ddoc._id) .map(ddocId => ddocId.split('/')[1]));