fix test cases

This commit is contained in:
Hayden 2024-05-24 18:17:18 -05:00
parent 41881ee8ec
commit c7ada54e14
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 6 additions and 3 deletions

View file

@ -1,8 +1,9 @@
run:
timeout: 10m
skip-dirs:
- internal/data/ent.*
linters-settings:
errcheck:
exclude-functions:
- (net/http.ResponseWriter).Write
goconst:
min-len: 5
min-occurrences: 5
@ -72,3 +73,5 @@ linters:
issues:
exclude-use-default: false
fix: false
exclude-dirs:
- internal/data/ent.*

View file

@ -56,7 +56,7 @@ func TestMain(m *testing.M) {
log.Fatalf("failed opening connection to sqlite: %v", err)
}
err = client.Schema.Create(tCtx)
err = client.Schema.Create(context.Background())
if err != nil {
log.Fatalf("failed creating schema resources: %v", err)
}