Commit 743d01c
committed
test(e2e): retry the sha lookup in apiUpdateFile
The update API needs the current blob sha, but the GET fetching it was
neither retried nor status-checked: a transient 5xx or a 404 surfaced as
a confusing JSON parse error instead of the retry helper's message.
Wrap it like apiCreatePR does, reading the sha only when the response
is ok.
Assisted-by: Codet1 parent 150e629 commit 743d01c
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
0 commit comments