Commit 833ab82
test(source-chat): advance the fake clock monotonically in the keepalive test
The previous counter froze the clock at 100.0 for every call after the
first, which left the due-keepalive check at 0 forever if the generation
loop ever iterated twice. A monotonically increasing clock keeps the
keepalive-before-final-response regression test meaningful under any
number of polls.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent c213853 commit 833ab82
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
716 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
717 | 718 | | |
718 | | - | |
719 | | - | |
720 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
721 | 723 | | |
722 | 724 | | |
723 | 725 | | |
| |||
0 commit comments