mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-26 02:25:41 +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:
|
run:
|
||||||
timeout: 10m
|
timeout: 10m
|
||||||
skip-dirs:
|
|
||||||
- internal/data/ent.*
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
|
errcheck:
|
||||||
|
exclude-functions:
|
||||||
|
- (net/http.ResponseWriter).Write
|
||||||
goconst:
|
goconst:
|
||||||
min-len: 5
|
min-len: 5
|
||||||
min-occurrences: 5
|
min-occurrences: 5
|
||||||
|
@ -72,3 +73,5 @@ linters:
|
||||||
issues:
|
issues:
|
||||||
exclude-use-default: false
|
exclude-use-default: false
|
||||||
fix: 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)
|
log.Fatalf("failed opening connection to sqlite: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = client.Schema.Create(tCtx)
|
err = client.Schema.Create(context.Background())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("failed creating schema resources: %v", err)
|
log.Fatalf("failed creating schema resources: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue