Commit 123dcd5
fix(updater): skip target tests on windows
The new TestGetTargetInfoTable / TestDownloadTargetTable /
TestFindCachedTargetTable cases route through
simulator.RepositorySimulator.fetch, which keys off
filepath.Separator and the hardcoded "/targets/" prefix --
unreachable on windows where filepath.Separator is backslash.
The underlying production code still gets coverage from the
Linux and macOS runners.
Skip the three tests on runtime.GOOS == "windows" until the
simulator's target URL routing is fixed in a separate change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>1 parent ddec65a commit 123dcd5
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | 48 | | |
| |||
1154 | 1167 | | |
1155 | 1168 | | |
1156 | 1169 | | |
| 1170 | + | |
1157 | 1171 | | |
1158 | 1172 | | |
1159 | 1173 | | |
| |||
1201 | 1215 | | |
1202 | 1216 | | |
1203 | 1217 | | |
| 1218 | + | |
1204 | 1219 | | |
1205 | 1220 | | |
1206 | 1221 | | |
| |||
1291 | 1306 | | |
1292 | 1307 | | |
1293 | 1308 | | |
| 1309 | + | |
1294 | 1310 | | |
1295 | 1311 | | |
1296 | 1312 | | |
| |||
0 commit comments