Skip to content

Commit

Permalink
test(APM): fixing APM spec test runner to skip certain tests
Browse files Browse the repository at this point in the history
Added a feature to the APM spec test runner to respect the
ignore_if_topology_type field in the spec files. Fixes a broken
test when running with sharded
  • Loading branch information
daprahamian authored and mbroadst committed Jan 14, 2019
1 parent bedc2d2 commit c9111a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/apm_tests.js
Expand Up @@ -1109,6 +1109,12 @@ describe('APM', function() {
requirements.mongodb = `>${test.ignore_if_server_version_less_than}`;
}

if (test.ignore_if_topology_type) {
requirements.topology = requirements.topology.filter(
top => test.ignore_if_topology_type.indexOf(top) < 0
);
}

it(test.description, {
metadata: { requires: requirements },
test: function() {
Expand Down

0 comments on commit c9111a1

Please sign in to comment.