]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/invite-test.e
Don't send nick name as default PART reason
[ngircd-alex.git] / src / testsuite / invite-test.e
index 17afbd28a354ee620420a03865ae0d5df2cf1b7d..b9e0c3f96d213f688a16c6fd471eb73c62485cec 100644 (file)
@@ -1,4 +1,7 @@
-spawn telnet localhost 6789
+# ngIRCd test suite
+# INVITE test
+
+spawn telnet 127.0.0.1 6789
 expect {
        timeout { exit 1 }
        "Connected"
 expect {
        timeout { exit 1 }
        "Connected"
@@ -73,13 +76,13 @@ send "invite nick #channel\r"
 expect {
        timeout { exit 1 }
        "482 nick #channel :You are not channel operator"
 expect {
        timeout { exit 1 }
        "482 nick #channel :You are not channel operator"
-       # it would be reasonable to expect 443 here instead
+       #it would be reasonable to expect 443 here instead
 }
 
 send "part #channel\r"
 expect {
        timeout { exit 1}
 }
 
 send "part #channel\r"
 expect {
        timeout { exit 1}
-       -re "PART #channel :?nick"
+       "@* PART #channel :"
 }
 
 send "invite nick :parameter with spaces\r"
 }
 
 send "invite nick :parameter with spaces\r"
@@ -109,5 +112,3 @@ expect {
        timeout { exit 1 }
        "Connection closed"
 }
        timeout { exit 1 }
        "Connection closed"
 }
-
-# -eof-