Skip to content

Commit 7542aea

Browse files
authored
enrichment_test.EnrichmentTest flaky fix (#36407)
* enrichment returns row fields in different order. simple split string makes comparison of rows flaky. * format
1 parent 10a049e commit 7542aea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sdks/python/apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def test_enrichment_with_vertex_ai(self, mock_stdout):
134134
expected = sorted(validate_enrichment_with_vertex_ai())
135135

136136
for i in range(len(expected)):
137-
self.assertEqual(set(output[i].split(',')), set(expected[i].split(',')))
137+
self.assertEqual(
138+
set(output[i][4:-1].split(',')), set(expected[i][4:-1].split(',')))
138139

139140
def test_enrichment_with_vertex_ai_legacy(self, mock_stdout):
140141
enrichment_with_vertex_ai_legacy()

0 commit comments

Comments
 (0)