style: fix lint errors
Some checks failed
Format and Lint / format-check (push) Successful in 3m0s
Format and Lint / test (push) Failing after 1m28s

This commit is contained in:
Максим Слипенко 2024-12-31 21:10:20 +03:00
parent 2db1355d64
commit d90e2bba34

View file

@ -6,9 +6,10 @@ import (
"path"
"testing"
"github.com/stretchr/testify/assert"
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/models"
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/services/reposervice"
"github.com/stretchr/testify/assert"
)
func TestRepoService_ForceUpdate(t *testing.T) {
@ -30,6 +31,7 @@ func TestRepoService_ForceUpdate(t *testing.T) {
assert.NoError(t, err)
defer destination.Close()
_, err = io.Copy(destination, source)
assert.NoError(t, err)
source.Close()
destination.Close()