Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgysavva committed Apr 7, 2024
1 parent 870ab55 commit 345c2ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dbscan/dbscan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ func TestMain(m *testing.M) {
panic(err)
}
defer testDB.Close()
prepareTestDB(testDB)
err = prepareTestDB(testDB)
if err != nil {
panic(err)
}
testAPI, err = getAPI()
if err != nil {
panic(err)
Expand All @@ -417,9 +420,9 @@ func TestMain(m *testing.M) {
}

func prepareTestDB(testDB *pgxpool.Pool) (err error) {
_, err = testDB.Query(ctx, `
_, err = testDB.Exec(ctx, `
CREATE TYPE test_enum_type AS ENUM ('test_val_1', 'test_val_2');
`)

return
return err
}

0 comments on commit 345c2ee

Please sign in to comment.