Repository navigation
Commit b2aef35
committed
test(agent): wait for both responses in the steer run-id mismatch test
steer_rejected_on_run_id_mismatch stopped reading when the prompt turn
finished. The fake LLM can finish the turn before the agent handles the
steer, so the rejected steer's response can arrive after the turn's
response. The test then reported "run-id mismatch was not rejected"
even though the agent rejected it.
The test now reads until it has both responses, and it still requires
the steer to fail with invalid_params. On a saturated 16-core host the
unchanged test failed 15 of 400 runs; with this change it failed 0 of 400.
Signed-off-by: Tee8z <[email protected]>1 parent e3f8f9a commit b2aef35
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
| 986 | + | |
| 987 | + | |
986 | 988 | | |
| 989 | + | |
987 | 990 | | |
988 | 991 | | |
989 | 992 | | |
| |||
994 | 997 | | |
995 | 998 | | |
996 | 999 | | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
997 | 1004 | | |
998 | 1005 | | |
999 | 1006 | | |
1000 | 1007 | | |
| 1008 | + | |
1001 | 1009 | | |
1002 | 1010 | | |
1003 | 1011 | | |
| |||
0 commit comments