aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkegsay <kegan@matrix.org>2022-05-05 10:53:52 +0100
committerGitHub <noreply@github.com>2022-05-05 10:53:52 +0100
commit5c37f165ae5301ee1f41c1491bed7fcc7c439c40 (patch)
tree18c6a7163547bfd7f25675ac560194b57f347443 /test
parentd86dcbef66dad344bc38c58762a9634ff126d5c7 (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.go4
1 files 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)
}
}