Skip to content

Commit 38666d6

Browse files
committed
Fix flaky test_gauge_creation test, because the order of returned metrics might change
1 parent e029904 commit 38666d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hawkular/metrics_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def test_gauge_creation(self):
9494
{'tags': {'units': 'bytes', 'env': 'qa'},
9595
'id': 'test.create.gauge.3', 'dataRetention': 90, 'type': 'gauge', 'tenantId': self.test_tenant}]
9696

97-
self.assertEqual(m, expect) # Did it?
97+
for e in expect:
98+
self.assertIn(e, m)
9899

99100
# Lets try creating a duplicate metric
100101
md4 = self.client.create_metric_definition(MetricType.Gauge, id_name.format('1'))

0 commit comments

Comments
 (0)