connect-test.e 235 B

1234567891011121314151617181920
  1. # ngIRCd test suite
  2. # Server connect test
  3. spawn telnet 127.0.0.1 6789
  4. expect {
  5. timeout { exit 1 }
  6. "Connected"
  7. }
  8. send "oper\r"
  9. expect {
  10. timeout { exit 1 }
  11. "451"
  12. }
  13. send "quit\r"
  14. expect {
  15. timeout { exit 1 }
  16. "Connection closed"
  17. }