Skip to content

Commit

Permalink
fix monitoring unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Dec 2, 2024
1 parent 31d274d commit 0d48625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/tests/mocha/services/monitoring.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const VIEW_INDEXES_BY_DB = {
'medic-admin',
'medic-client',
'medic-conflicts',
'medic-nouveau',
'medic-scripts',
'medic-sms',
],
Expand Down Expand Up @@ -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]));

Expand Down

0 comments on commit 0d48625

Please sign in to comment.