mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-21 17:03:46 +00:00
lint, and change test paths in CI
This commit is contained in:
parent
6ecf051982
commit
ac42ad6196
2 changed files with 2 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -48,4 +48,4 @@ test-frontend:
|
|||
pnpm -F frontend "test:unit"
|
||||
|
||||
test-backend:
|
||||
go test -v -cover ./internal/api
|
||||
go test -v -cover ./internal/...
|
||||
|
|
|
@ -21,13 +21,12 @@ func TestConfig(t *testing.T) {
|
|||
}
|
||||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
|
||||
if tc.name == "Should read config file successfully" {
|
||||
f, err := os.Create("config.yaml")
|
||||
if err != nil {
|
||||
assert.NotNil(t, err)
|
||||
}
|
||||
defer os.Remove(f.Name())
|
||||
defer os.Remove(f.Name()) //nolint: errcheck
|
||||
} else {
|
||||
err := os.Remove("config.yaml")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue