mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 16:54:36 +03:00
imapserver: Prevent spurious test failures due to compression layer being closed and TLS close-writes failing
This commit is contained in:
@ -40,6 +40,11 @@ func TestCompressStartTLS(t *testing.T) {
|
||||
tc.transactf("ok", "append inbox (\\seen) {%d+}\r\n%s", len(exampleMsg), exampleMsg)
|
||||
tc.transactf("ok", "noop")
|
||||
tc.transactf("ok", "fetch 1 body.peek[1]")
|
||||
|
||||
// Prevent client.Close from failing the test. The client first closes the
|
||||
// compression stream, which causes the server to close the connection, after which
|
||||
// the messages to close the TLS connection are written to a closed socket.
|
||||
tc.client.SetPanic(false)
|
||||
}
|
||||
|
||||
func TestCompressBreak(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user