]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/who-test.e
Test suite: Correctly test for LOGNAME and USER
[ngircd-alex.git] / src / testsuite / who-test.e
index a41e6b6a68574f394ef68731948a1ec4764f3bd0..55c65702eb342805b9ab71ddbd99d5c68de78870 100644 (file)
@@ -1,7 +1,7 @@
 # ngIRCd test suite
 # WHO test
 
-spawn telnet localhost 6789
+spawn telnet 127.0.0.1 6789
 expect {
        timeout { exit 1 }
        "Connected"
@@ -62,7 +62,7 @@ expect {
        ":ngircd.test.server 352 nick #channel * * ngircd.test.server nick G@ :0 Real Name"
 }
 
-send "who localhos*\r"
+send "who 127.0.0.*\r"
 expect {
        timeout { exit 1 }
        ":ngircd.test.server 352 nick \* * * ngircd.test.server nick G :0 Real Name"
@@ -89,7 +89,7 @@ expect {
 send "part #channel\r"
 expect {
        timeout { exit 1 }
-       "@* PART #channel :nick"
+       "@* PART #channel :"
 }
 
 send "who Real?Name\r"
@@ -120,7 +120,7 @@ expect {
        "305 nick"
 }
 
-send "who ??cal*ho*\r"
+send "who ??7.*0*\r"
 expect {
        timeout { exit 1 }
        ":ngircd.test.server 352 nick \* * * ngircd.test.server nick H* :0 Real Name"
@@ -199,5 +199,5 @@ expect {
 send "quit\r"
 expect {
        timeout { exit 1 }
-       "Connection closed"
+       "ERROR :Closing connection"
 }