Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
internal/database: fix error check in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Oct 8, 2019
1 parent 8204a45 commit c35b80e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/database/sqlite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit c35b80e

Please sign in to comment.