From 25f7d30f4bbebf2a4bc361d4703fb3a66bc1a642 Mon Sep 17 00:00:00 2001 From: Matthias Fasching Date: Fri, 11 Mar 2022 10:40:25 +0000 Subject: [PATCH] This should fix #105: test command should not require test db to already exist --- internal/cmd/test/test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cmd/test/test.go b/internal/cmd/test/test.go index e278fa9b..e1441d5a 100644 --- a/internal/cmd/test/test.go +++ b/internal/cmd/test/test.go @@ -27,7 +27,8 @@ func runE(c *cobra.Command, args []string) error { // drop the test db: if err := test.Dialect.DropDB(); err != nil { - return err + // not an error, since the database will be created in the next step anyway + logrus.Info("no test database to drop") } // create the test db: