diff --git a/testing/logictest/harness/doltgres_server_harness.go b/testing/logictest/harness/doltgres_server_harness.go index 10fb29b884..ac8da7a476 100644 --- a/testing/logictest/harness/doltgres_server_harness.go +++ b/testing/logictest/harness/doltgres_server_harness.go @@ -268,7 +268,9 @@ func (h *DoltgresHarness) startNewDoltgresServer(ctx context.Context, newTestFil func (h *DoltgresHarness) ClearServer() { if h.db != nil { err := h.db.Close() - logErr(err, "closing connection") + if err != nil { + logErr(err, "closing connection") + } h.db = nil } // close