From c35b80eac72e8cf0804b8a986b41d309806665fe Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Tue, 8 Oct 2019 18:41:29 -0500 Subject: [PATCH] internal/database: fix error check in tests --- internal/database/sqlite_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/database/sqlite_test.go b/internal/database/sqlite_test.go index 4bdf103a2..264ff348d 100644 --- a/internal/database/sqlite_test.go +++ b/internal/database/sqlite_test.go @@ -27,12 +27,9 @@ func TestSQLite__basic(t *testing.T) { // error case s := sqliteConnection(log.NewNopLogger(), "/tmp/path/doesnt/exist") - conn, err := s.Connect() - if err != nil { - t.Fatal(err) - } + conn, _ := s.Connect() if err := conn.Ping(); err == nil { - t.Fatal("expected error") + t.Error("expected error") } conn.Close() }