From 80c2debfe82c5c8288524f6a1edabdfff8417674 Mon Sep 17 00:00:00 2001 From: coffeegoddd Date: Fri, 26 Jan 2024 15:29:48 -0800 Subject: [PATCH] /testing/logictest/harness/doltgres_server_harness.go: catch error --- testing/logictest/harness/doltgres_server_harness.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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