diff --git a/tests/detection/test_influxdb.py b/tests/detection/test_influxdb.py index de915a17..20378174 100644 --- a/tests/detection/test_influxdb.py +++ b/tests/detection/test_influxdb.py @@ -180,7 +180,7 @@ class TestInfluxDBDetection(base.BaseTestCase): } built_config = self._ir.build_config() - self.assertItemsEqual(monitored_items, built_config.keys()) + self.assertCountEqual(monitored_items, built_config.keys()) for key in built_config.keys(): if key == 'process': self._verify_process_conf(built_config[key]) diff --git a/tests/detection/test_influxdb_relay.py b/tests/detection/test_influxdb_relay.py index bf2ce470..e9bee222 100644 --- a/tests/detection/test_influxdb_relay.py +++ b/tests/detection/test_influxdb_relay.py @@ -171,7 +171,7 @@ class TestInfluxDBRelayDetection(base.BaseTestCase): } built_config = self._ir.build_config() - self.assertItemsEqual(monitored_items, built_config.keys()) + self.assertCountEqual(monitored_items, built_config.keys()) for key in built_config.keys(): if key == 'process': self._verify_process_conf(built_config[key])