Skip to content

Add connection timeout tests#2

Open
quiloos39 wants to merge 1 commit intomainfrom
add-timeout-tests
Open

Add connection timeout tests#2
quiloos39 wants to merge 1 commit intomainfrom
add-timeout-tests

Conversation

@quiloos39
Copy link
Owner

@quiloos39 quiloos39 commented Feb 16, 2026

Summary

  • Add 9 tests verifying SSH connection and command execution timeout behavior
  • Covers outer connection timeout, command timeout with partial output, readyTimeout derivation, settled-flag guard, ready-before-timeout race, broken-pipe detection, stale connection rejection, default values, and connection replacement cleanup

Test plan

  • Run node --import tsx --test tests/connection-timeout.test.ts and verify all 9 tests pass
  • Verify timeout logic matches src/tools/connect.ts and src/tools/execute.ts patterns

@quiloos39 quiloos39 changed the title Add connection timeout tests\n\nAdds test suite verifying SSH connection timeout behavior including connection timeout, command execution timeout, ready timeout, settled flag guards, and broken-pipe detection. Add connection timeout tests Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant