]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/stress-B.e
Make sure that the target user is able to join a local channel
[ngircd-alex.git] / src / testsuite / stress-B.e
index 5906fc326013d88540f12b79f1b9179ab22b06b0..95156cbb552041a88222bb27a9ca3f4d7481c646 100644 (file)
@@ -1,9 +1,10 @@
-# $Id: stress-B.e,v 1.2 2005/08/12 21:38:52 alex Exp $
+# ngIRCd test suite
+# "Stress" body
 
 send "user user . . :User\r"
 expect {
        timeout { exit 1 }
-       "376"
+       " 376"
 }
 
 sleep 2
@@ -15,7 +16,7 @@ expect {
 }
 expect {
        timeout { exit 1 }
-       "381 test*"
+       " 381 test"
 }
 
 sleep 2
@@ -23,33 +24,33 @@ sleep 2
 send "join #channel\r"
 expect {
        timeout { exit 1 }
-       ":test*!~user@* JOIN :#channel"
+       " 353 * = #channel "
 }
 expect {
        timeout { exit 1 }
-       "366"
+       " 366 * #channel :"
 }
 
 send "mode #channel\r"
 expect {
        timeout { exit 1 }
-       "324 test* #channel"
+       " 324 test* #channel"
 }
 
 send "join #channel2\r"
 expect {
        timeout { exit 1 }
-       ":test*!~user@* JOIN :#channel2"
+       " 353 * = #channel2 "
 }
 expect {
        timeout { exit 1 }
-       "366"
+       " 366 * #channel2 :"
 }
 
 send "names\r"
 expect {
        timeout { exit 1 }
-       "366"
+       " 366 "
 }
 
 sleep 3
@@ -57,19 +58,19 @@ sleep 3
 send "part #channel2\r"
 expect {
        timeout { exit 1 }
-       ":test*!~user@* PART #channel2"
+       " PART #channel2 "
 }
 
 send "part #channel\r"
 expect {
        timeout { exit 1 }
-       ":test*!~user@* PART #channel"
+       " PART #channel "
 }
 
+sleep 1
+
 send "quit\r"
 expect {
        timeout { exit 1 }
        "Connection closed"
 }
-
-# -eof-