Commit 1695d0f
authored
test(compute): simplify and re-enable flaky ITPaginationTest test case (googleapis#13288)
To make the test more reliable, the assertions are simplified to verify
that all zone names are non-null and at least 2 pages have been
traversed by the iterator.
This test case has been quite flaky historically (see [past
comment](googleapis#9134 (comment))).
Iterating occasionally short-circuits at different places through the
list of zones (which Gemini hypothesizes may be aligned with regional
boundaries), and the DEFAULT_ZONE used in the test's current final
assertion appears towards the end of the alphabetically-sorted list.
Fixes googleapis#117591 parent 51ba902 commit 1695d0f
1 file changed
Lines changed: 4 additions & 10 deletions
File tree
- java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/integration
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
122 | 119 | | |
123 | 120 | | |
| 121 | + | |
124 | 122 | | |
125 | | - | |
126 | | - | |
| 123 | + | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 127 | + | |
134 | 128 | | |
135 | 129 | | |
136 | 130 | | |
| |||
0 commit comments