Errors from createdb are non-fatal (#2420)

As they are expected if the database already exists.
This commit is contained in:
kegsay 2022-05-05 10:53:52 +01:00 committed by GitHub
parent d86dcbef66
commit 5c37f165ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}