Commit e301432
authored
fix: add retries to network tests (#2055)
## Description
Network tests, specifically the [Remote Cidr
Restriction](https://github.com/defenseunicorns/uds-core/blob/988955bba84e5fa997b316e105d7a661e081992b/test/vitest/network.spec.ts#L393-L411)
and other tests that utilize a [curl that verifies response from
google](https://github.com/defenseunicorns/uds-core/blob/988955bba84e5fa997b316e105d7a661e081992b/test/vitest/network.spec.ts#L173-L183)
are very flaky lately.
This PR increases timeout of the curl command to 20 seconds, increases
number of retries to 3, and adds a retry delay of 1 second between
retries.
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)
## Checklist before merging
- [x] Test, docs, adr added or updated as needed
- [x] [Contributor
Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)
followed1 parent 5e93bf0 commit e301432
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
0 commit comments