diff options
| author | Mistivia <i@mistivia.com> | 2025-10-23 23:44:03 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-10-23 23:44:07 +0800 |
| commit | c8aeef18cb46a617b6397b9822263895e97e9048 (patch) | |
| tree | ebe127e7c194039f315b74a5998b05a271c57b9d /ngircd/src/testsuite/stress-B.e | |
add ircd
Diffstat (limited to 'ngircd/src/testsuite/stress-B.e')
| -rw-r--r-- | ngircd/src/testsuite/stress-B.e | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/ngircd/src/testsuite/stress-B.e b/ngircd/src/testsuite/stress-B.e new file mode 100644 index 0000000..53c75a0 --- /dev/null +++ b/ngircd/src/testsuite/stress-B.e @@ -0,0 +1,76 @@ +# ngIRCd test suite +# "Stress" body + +send "user user . . :User\r" +expect { + timeout { exit 1 } + " 376" +} + +sleep 2 + +send "oper TestOp 123\r" +expect { + timeout { exit 1 } + "MODE test* :+o" +} +expect { + timeout { exit 1 } + " 381 test" +} + +sleep 2 + +send "join #channel\r" +expect { + timeout { exit 1 } + " 353 * = #channel " +} +expect { + timeout { exit 1 } + " 366 * #channel :" +} + +send "mode #channel\r" +expect { + timeout { exit 1 } + " 324 test* #channel" +} + +send "join #channel2\r" +expect { + timeout { exit 1 } + " 353 * = #channel2 " +} +expect { + timeout { exit 1 } + " 366 * #channel2 :" +} + +send "names\r" +expect { + timeout { exit 1 } + " 366 " +} + +sleep 3 + +send "part #channel2\r" +expect { + timeout { exit 1 } + " PART #channel2 " +} + +send "part #channel\r" +expect { + timeout { exit 1 } + " PART #channel " +} + +sleep 1 + +send "quit\r" +expect { + timeout { exit 1 } + "ERROR :Closing connection" +} |
