Repository navigation
Commit 1d8a20d
committed
test(gemini): align errorDetails fixtures with Task.ts consumer contract
What: Change the 429/403 rejection fixtures from object-shaped errorDetails to
arrays of google.rpc detail objects (RetryInfo with retryDelay "30s";
ErrorInfo with reason PERMISSION_DENIED), matching what
Task.ts backoffAndAnnounce actually consumes via errorDetails.find().
Why: The object fixture pinned a shape the real consumer never sees, so the
pass-through tests could not guard the retry-delay parsing path.
Impact: Test-only; pins the array contract both rejection paths preserve.1 parent 85fdd82 commit 1d8a20d
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
484 | 486 | | |
485 | 487 | | |
486 | | - | |
| 488 | + | |
487 | 489 | | |
488 | 490 | | |
489 | 491 | | |
| |||
493 | 495 | | |
494 | 496 | | |
495 | 497 | | |
496 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
497 | 501 | | |
498 | 502 | | |
499 | 503 | | |
| |||
528 | 532 | | |
529 | 533 | | |
530 | 534 | | |
| 535 | + | |
| 536 | + | |
531 | 537 | | |
532 | 538 | | |
533 | | - | |
| 539 | + | |
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
| |||
541 | 547 | | |
542 | 548 | | |
543 | 549 | | |
544 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
545 | 553 | | |
546 | 554 | | |
547 | 555 | | |
| |||
0 commit comments