mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 08:35:43 +00:00
fix test cases
This commit is contained in:
parent
41881ee8ec
commit
c7ada54e14
2 changed files with 6 additions and 3 deletions
|
@ -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.*
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue