1 parent 7ab8f86 commit f7a0b5fCopy full SHA for f7a0b5f
1 file changed
tests/fm-account-routing.test.sh
@@ -705,8 +705,11 @@ test_enforce_failure_rolls_back_prepared_endpoint() {
705
id=account-select-fail-z5
706
rec=$(make_case select-fail claude "$id")
707
read_case "$rec"
708
- out=$(FM_FAKE_AF_BAD_SELECTION=1 run_spawn "$id" "$PROJ_DIR" --account-pool claude-crew)
709
- status=$?
+ if out=$(FM_FAKE_AF_BAD_SELECTION=1 run_spawn "$id" "$PROJ_DIR" --account-pool claude-crew); then
+ status=0
710
+ else
711
+ status=$?
712
+ fi
713
[ "$status" -ne 0 ] || fail "failed Agent Fleet selection should block spawn"
714
assert_regex '^new-window ' "$TMUX_LOG" "selection did not happen after endpoint preparation"
715
assert_regex '^kill-window ' "$TMUX_LOG" "selection failure did not remove its prepared endpoint"
0 commit comments