mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-04 14:09:57 +00:00
Test suite: wait for ERROR message on QUIT
Wait for the "ERROR :Closing connection" message sent by ngIRCd when handling the QUIT command, do not wait for "Connection closed" which is actually output by the telnet(1) command and is implementation dependant! For example, on Haiku OS, this is not always(!) echoed (the command seems to hang sometimes?) which results in unpredictable failures in the test suite ...
This commit is contained in:
parent
22a8744476
commit
a8a37b681e
@ -103,5 +103,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
||||
exit $r
|
||||
|
@ -17,5 +17,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -17,6 +17,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
||||
|
@ -16,5 +16,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -110,5 +110,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -108,5 +108,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -109,5 +109,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -148,5 +148,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -160,5 +160,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"ERROR"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -171,5 +171,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -29,5 +29,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -46,5 +46,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"ERROR"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -72,5 +72,5 @@ sleep 1
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -199,5 +199,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"Connection closed"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
@ -73,5 +73,5 @@ expect {
|
||||
send "quit\r"
|
||||
expect {
|
||||
timeout { exit 1 }
|
||||
"ERROR"
|
||||
"ERROR :Closing connection"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user