Commit 30dc617
authored
Fix(test): Make template path unique in DataflowJobServiceTest (#35776)
* Fix(test): Make template path unique in DataflowJobServiceTest
The `DirectPipelineTemplateTest` used a hardcoded GCS path for the `template_location`. This can cause test flakiness due to collisions between concurrent test runs or leftover artifacts from previous runs.
This change uses `time.time()` to generate a unique template path for each test execution, ensuring test isolation and improving reliability.
* format1 parent 1386408 commit 30dc617
File tree
1 file changed
+4
-1
lines changed- sdks/python/apache_beam/runners/dataflow
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments