style: fix lint errors
This commit is contained in:
parent
2db1355d64
commit
d90e2bba34
1 changed files with 3 additions and 1 deletions
|
@ -6,9 +6,10 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"testing"
|
"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/models"
|
||||||
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/services/reposervice"
|
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/services/reposervice"
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRepoService_ForceUpdate(t *testing.T) {
|
func TestRepoService_ForceUpdate(t *testing.T) {
|
||||||
|
@ -30,6 +31,7 @@ func TestRepoService_ForceUpdate(t *testing.T) {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
defer destination.Close()
|
defer destination.Close()
|
||||||
_, err = io.Copy(destination, source)
|
_, err = io.Copy(destination, source)
|
||||||
|
assert.NoError(t, err)
|
||||||
|
|
||||||
source.Close()
|
source.Close()
|
||||||
destination.Close()
|
destination.Close()
|
||||||
|
|
Loading…
Reference in a new issue