mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
dovecot: Add tests for more error cases
This patch adds more tests for the dovecot library, in particular: - Protocol errors (invalid versions, etc.). - Invalid command (cli-specific test). - Connection breakups.
This commit is contained in:
@@ -117,3 +117,9 @@ func mustListen(t *testing.T, path string) *net.UnixListener {
|
||||
|
||||
return l
|
||||
}
|
||||
|
||||
func TestNotASocket(t *testing.T) {
|
||||
if isUnixSocket("/doesnotexist") {
|
||||
t.Errorf("isUnixSocket(/doesnotexist) returned true")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user