diff --git a/tests/integration/reposervice_forceupdate_test.go b/tests/integration/reposervice_forceupdate_test.go index a0f157c..d2e12bc 100644 --- a/tests/integration/reposervice_forceupdate_test.go +++ b/tests/integration/reposervice_forceupdate_test.go @@ -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()