Commit 5728cdb
committed
[test]: Fix curl error handling in reserved IP HTTP response checks
curl -w "%{http_code}" already outputs "000" when a connection fails, then exits non-zero. Without error suppression, `set -euo pipefail` exits
the script immediately.
Add `|| true` to suppress the exit code while preserving curl's own `"000"` output, allowing the retry loop to continue.
Signed-off-by: Moshe Vayner <moshe@vayner.me>1 parent 77ddc9e commit 5728cdb
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- e2e/test
- lb-created-with-reserved-ip-linode-range
- lb-created-with-reserved-ip-nb-range
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
0 commit comments