Commit e593223
fix: resolve gh.spec.ts test timeouts caused by incorrect retry config
- doNotRetry must use numbers not strings ([404] not ["404"]) - string comparison against numeric error.status always failed, causing all 4xx errors to be retried
- Replace server.use() error overrides with sentinel values in github-handlers.ts (owner="error-404" → 404, owner="rate-limited" → 403, tag_sha="lightweight-tag" → 404) since MSW runtime handler overrides don't intercept in Bun
- Rewrite 3 error-handling tests to use expect().rejects pattern with sentinel values
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 1807353 commit e593223
File tree
3 files changed
+21
-77
lines changed- lib/github
- src
- test
3 files changed
+21
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
368 | 351 | | |
369 | 352 | | |
370 | 353 | | |
| |||
389 | 372 | | |
390 | 373 | | |
391 | 374 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
419 | 379 | | |
420 | 380 | | |
421 | 381 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
450 | 386 | | |
451 | 387 | | |
452 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
760 | 765 | | |
761 | 766 | | |
762 | 767 | | |
| 768 | + | |
763 | 769 | | |
764 | 770 | | |
| 771 | + | |
| 772 | + | |
765 | 773 | | |
766 | 774 | | |
767 | 775 | | |
| |||
0 commit comments