Commit 9f54560
committed
fetchActions tests: Test retry logic with a more representative error.
The fact that this test (before this commit) was passing isn't good
-- it means a basically arbitrary, unexpected kind of error will let
the retry loop continue without propagating to `tryFetch`'s caller.
Instead, if something unexpected like that happens, we should fail
early (and stop wasting the user's time) by breaking out of the
retry loop and having the error propagate to the caller.
We plan to fix that in a later series of commits, and add a test
case with an error like that. But for now, test that we get the
right behavior with representative inputs.1 parent c7c696e commit 9f54560
2 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
125 | | - | |
| 134 | + | |
126 | 135 | | |
127 | 136 | | |
128 | 137 | | |
| |||
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
138 | | - | |
| 147 | + | |
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
| |||
0 commit comments