We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4075b44 commit f347313Copy full SHA for f347313
test/runner/filters/unified_filter.js
@@ -12,12 +12,13 @@
12
*/
13
class UnifiedTopologyFilter {
14
filter(test) {
15
- if (!test.metadata) return true;
16
- if (!test.metadata.requires) return true;
17
- if (typeof test.metadata.requires.unifiedTopology !== 'boolean') return true;
+ const unifiedTopology =
+ test.metadata && test.metadata.requires && test.metadata.requires.unifiedTopology;
18
19
- const requireUnifiedTopology = !!test.metadata.requires.unifiedTopology;
20
- return requireUnifiedTopology === !!process.env.MONGODB_UNIFIED_TOPOLOGY;
+ return (
+ typeof unifiedTopology !== 'boolean' ||
+ unifiedTopology === process.env.MONGODB_UNIFIED_TOPOLOGY
21
+ );
22
}
23
24
0 commit comments