From fa021af906baf07f0c20d53d33c0b32cae1a8534 Mon Sep 17 00:00:00 2001 From: Vitaly Terentyev Date: Fri, 19 Sep 2025 19:23:30 +0400 Subject: [PATCH] Sort output before comparison in enrichment test --- .../snippets/transforms/elementwise/enrichment_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/python/apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py b/sdks/python/apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py index 5a64d2667f2a..904b90710225 100644 --- a/sdks/python/apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py +++ b/sdks/python/apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py @@ -130,8 +130,8 @@ def test_enrichment_with_bigtable(self, mock_stdout): def test_enrichment_with_vertex_ai(self, mock_stdout): enrichment_with_vertex_ai() - output = mock_stdout.getvalue().splitlines() - expected = validate_enrichment_with_vertex_ai() + output = sorted(mock_stdout.getvalue().splitlines()) + expected = sorted(validate_enrichment_with_vertex_ai()) for i in range(len(expected)): self.assertEqual(set(output[i].split(',')), set(expected[i].split(',')))