diff options
author | kegsay <kegan@matrix.org> | 2022-05-05 10:53:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 10:53:52 +0100 |
commit | 5c37f165ae5301ee1f41c1491bed7fcc7c439c40 (patch) | |
tree | 18c6a7163547bfd7f25675ac560194b57f347443 /test | |
parent | d86dcbef66dad344bc38c58762a9634ff126d5c7 (diff) |
Errors from createdb are non-fatal (#2420)
As they are expected if the database already exists.
Diffstat (limited to 'test')
-rw-r--r-- | test/db.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } } |