From 5c37f165ae5301ee1f41c1491bed7fcc7c439c40 Mon Sep 17 00:00:00 2001 From: kegsay Date: Thu, 5 May 2022 10:53:52 +0100 Subject: [PATCH] Errors from createdb are non-fatal (#2420) As they are expected if the database already exists. --- test/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/db.go b/test/db.go index fecae5d4..a1754cd0 100644 --- a/test/db.go +++ b/test/db.go @@ -53,8 +53,8 @@ func createLocalDB(t *testing.T, dbName string) { createDB.Stderr = os.Stderr } err := createDB.Run() - if err != nil { - fatalError(t, "createLocalDB returned error: %s", err) + if err != nil && !Quiet { + fmt.Println("createLocalDB returned error:", err) } }