Commit cbf4139
committed
test(langgraph-ts): fix prepare-regenerate-stream fixture to match newest-first getHistory order
`threads.getHistory` returns checkpoints newest-first;
`getCheckpointByMessage` reverses to walk oldest-first and finds the
first checkpoint containing the target message. The previous fixture
ordered ck-old before ck-new, so after reverse the search found ck-new
(which had both u1 and a1), saw `messagesAfter` non-empty, and
recursed on the parent — but the mock returned the same list every
time, so the search never terminated and the worker timed out.
Swap to newest-first so the reversed walk lands on ck-old (only u1, no
messagesAfter) and returns immediately.1 parent 7109b79 commit cbf4139
1 file changed
Lines changed: 14 additions & 9 deletions
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | | - | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | | - | |
71 | 76 | | |
72 | 77 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments