Skip to content

Commit

Permalink
Fix non-deterministic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Aug 18, 2024
1 parent ecb4d12 commit 700a5f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/test/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_requirement(error_message: str):
.diff(right.withColumnRenamed("diff", "Diff"), "Diff", "id")

with self.subTest("non-id column 'diff"):
actual = left.diff(right, "id")
actual = left.diff(right, "id").orderBy("id")
expected_columns = ["diff", "id", "left_diff", "right_diff", "left_label", "right_label"]
self.assertEqual(actual.columns, expected_columns)
self.assertEqual(actual.collect(), self.expected_diff)
Expand Down Expand Up @@ -320,7 +320,7 @@ def test_requirement(error_message: str):
.diff_with_options(right.withColumnRenamed("change", "Change"), options, "Change", "id")

with self.subTest("non-id column 'change"):
actual = left.diff_with_options(right, options, "id")
actual = left.diff_with_options(right, options, "id").orderBy("id")
expected_columns = ["diff", "change", "id", "left_change", "right_change", "left_label", "right_label"]
diff_change_row = Row(*expected_columns)
expected_diff = [
Expand Down

0 comments on commit 700a5f6

Please sign in to comment.