]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/misc-test.e
ngIRCd Release 27
[ngircd-alex.git] / src / testsuite / misc-test.e
index f9142df20d80d4fae04c3f257c958e8674411591..8896624bd9e116078e23f4959376512f854cf285 100644 (file)
@@ -1,6 +1,7 @@
-# $Id: misc-test.e,v 1.2 2008/02/17 13:51:00 alex Exp $
+# ngIRCd test suite
+# Misc test
 
-spawn telnet localhost 6789
+spawn telnet 127.0.0.1 6789
 expect {
        timeout { exit 1 }
        "Connected"
@@ -129,7 +130,7 @@ expect {
 send "userhost nick\r"
 expect {
        timeout { exit 1 }
-       -re ":ngircd.test.server 302 nick :?nick=+.*@(localhost|127.0.0.1)"
+       -re ":ngircd.test.server 302 nick :?nick=+.*@127.0.0.1"
 }
 
 send "userhost doesnotexist\r"
@@ -141,7 +142,7 @@ expect {
 send "userhost nick doesnotexist nick doesnotexist\r"
 expect {
        timeout { exit 1 }
-       -re ":ngircd.test.server 302 nick :nick=+.*@(localhost|127.0.0.1) nick=+.*@(localhost|127.0.0.1)"
+       -re ":ngircd.test.server 302 nick :nick=+.*@127.0.0.1 nick=+.*@127.0.0.1"
 }
 
 send "away :testing\r"
@@ -153,13 +154,11 @@ expect {
 send "userhost nick nick nick nick nick nick\r"
 expect {
        timeout { exit 1 }
-       -re ":ngircd.test.server 302 nick :nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1)\r"
+       -re ":ngircd.test.server 302 nick :nick=-.*@127.0.0.1 nick=-.*@127.0.0.1 nick=-.*@127.0.0.1 nick=-.*@127.0.0.1 nick=-.*@127.0.0.1\r"
 }
 
 send "quit\r"
 expect {
        timeout { exit 1 }
-       "ERROR"
+       "ERROR :Closing connection"
 }
-
-# -eof-