Browse Source

fix: Fix KeyCollection test (#35245)

Alberto Leal 2 years ago
parent
commit
34babfc670
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/sentry/sentry_metrics/test_postgres_indexer.py

+ 2 - 2
tests/sentry/sentry_metrics/test_postgres_indexer.py

@@ -253,8 +253,8 @@ class KeyCollectionTest(TestCase):
 
         assert collection.mapping == org_strings
         assert collection.size == 5
-        assert list(collection.as_tuples()).sort() == collection_tuples.sort()
-        assert list(collection.as_strings()).sort() == collection_strings.sort()
+        assert sorted(list(collection.as_tuples())) == sorted(collection_tuples)
+        assert sorted(list(collection.as_strings())) == sorted(collection_strings)
 
 
 class KeyResultsTest(TestCase):