Skip to content

Commit

Permalink
Using db already define in test scope
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosperes committed Apr 17, 2024
1 parent ff4c955 commit 5fa206e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions app/data/mysql/account_store_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mysql_test

import (
"database/sql"
"testing"

"github.com/keratin/authn-server/app/data"
Expand All @@ -21,10 +20,6 @@ func TestAccountStore(t *testing.T) {
}

t.Run("handle oauth email with null value", func(t *testing.T) {
db := store.(interface {
Exec(query string, args ...interface{}) (sql.Result, error)
})

account, err := store.Create("migrated-user", []byte("old"))
require.NoError(t, err)

Expand Down
5 changes: 0 additions & 5 deletions app/data/postgres/account_store_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package postgres_test

import (
"database/sql"
"fmt"
"net/url"
"os"
Expand Down Expand Up @@ -48,10 +47,6 @@ func TestAccountStore(t *testing.T) {
}

t.Run("handle oauth email with null value", func(t *testing.T) {
db := store.(interface {
Exec(query string, args ...interface{}) (sql.Result, error)
})

account, err := store.Create("migrated-user", []byte("old"))
require.NoError(t, err)

Expand Down

0 comments on commit 5fa206e

Please sign in to comment.