mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +00:00
auth, dovecot: Add missing Reload tests
auth.wrapNoErrorBackend.Reload and dovecot.Reload were not being tested; this patch fixes that by adding a simple test for each.
This commit is contained in:
@@ -96,6 +96,14 @@ func TestAutodetect(t *testing.T) {
|
||||
cL.Close()
|
||||
}
|
||||
|
||||
func TestReload(t *testing.T) {
|
||||
// Make sure Reload does not fail.
|
||||
a := Auth{}
|
||||
if err := a.Reload(); err != nil {
|
||||
t.Errorf("Reload failed")
|
||||
}
|
||||
}
|
||||
|
||||
func mustListen(t *testing.T, path string) *net.UnixListener {
|
||||
addr, err := net.ResolveUnixAddr("unix", path)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user