diff --git a/server/daemon/daemon_test.go b/server/daemon/daemon_test.go index a87cdbfb9..e728af6e3 100644 --- a/server/daemon/daemon_test.go +++ b/server/daemon/daemon_test.go @@ -69,7 +69,7 @@ func TestIdleTimeout(t *testing.T) { if err != nil && !errors.Is(err, io.EOF) { t.Fatalf("expected nil, got error: %v", err) } - if out != git.ErrTimeout.Error() || out == "" { + if out != git.ErrTimeout.Error() && out != "" { t.Fatalf("expected %q error, got %q", git.ErrTimeout, out) } }