Skip to content

Commit f7a0b5f

Browse files
committed
test: preserve expected routing failure under errexit
1 parent 7ab8f86 commit f7a0b5f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/fm-account-routing.test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,11 @@ test_enforce_failure_rolls_back_prepared_endpoint() {
705705
id=account-select-fail-z5
706706
rec=$(make_case select-fail claude "$id")
707707
read_case "$rec"
708-
out=$(FM_FAKE_AF_BAD_SELECTION=1 run_spawn "$id" "$PROJ_DIR" --account-pool claude-crew)
709-
status=$?
708+
if out=$(FM_FAKE_AF_BAD_SELECTION=1 run_spawn "$id" "$PROJ_DIR" --account-pool claude-crew); then
709+
status=0
710+
else
711+
status=$?
712+
fi
710713
[ "$status" -ne 0 ] || fail "failed Agent Fleet selection should block spawn"
711714
assert_regex '^new-window ' "$TMUX_LOG" "selection did not happen after endpoint preparation"
712715
assert_regex '^kill-window ' "$TMUX_LOG" "selection failure did not remove its prepared endpoint"

0 commit comments

Comments
 (0)