Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Fixes: mattn#607
  • Loading branch information
gjrtimmer committed Jul 24, 2018
1 parent dc04a21 commit bfbba82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion driver/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ func TestEncryption(t *testing.T) {
cfg.Key = "aes-hmac:256:password"

// OpenDB
db := sql.Open("sqlite3", cfg.FormatDSN())
db, err := sql.Open("sqlite3", cfg.FormatDSN())
defer db.Close()
if err != nil {
t.Fatal("failed to open database")
}

_, err := db.Exec("create table if not exists foo (id integer)")
if err != nil {
Expand Down

0 comments on commit bfbba82

Please sign in to comment.