Commit f2f17b2
committed
test(url): make url_exists tests deterministic and offline
Fix flaky network-dependent URL tests in the shell test suite.
Root cause:
- tests used external hosts (facebook.com, google.com)
- DNS/network availability varies by environment, causing false negatives
Changes:
- app/test-url-exists-ok now checks local file URLs:
file:///etc/hosts and file:///etc/passwd
- app/test-url-exists-no now checks one failing and one passing local URL:
file:///definitely-not-here and file:///etc/hosts
- update SPDX copyright year to 2026 in both files
Validation:
- shellcheck -s sh app/test-url-exists-ok app/test-url-exists-no
- redo test (passes across available shells)1 parent dd1d755 commit f2f17b2
2 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
0 commit comments