diff --git a/artifactory_test.go b/artifactory_test.go index b0adf8673..a79e206b2 100644 --- a/artifactory_test.go +++ b/artifactory_test.go @@ -4173,6 +4173,7 @@ func TestUploadZipAndCheckDeploymentViewWithArchive(t *testing.T) { assert.NoError(t, os.Mkdir(tests.Out, 0755)) wd, err := os.Getwd() assert.NoError(t, err) + defer cleanArtifactoryTest() chdirCallback := clientTestUtils.ChangeDirWithCallback(t, wd, tests.Out) defer chdirCallback() @@ -4195,7 +4196,6 @@ func TestUploadZipAndCheckDeploymentViewWithArchive(t *testing.T) { assert.Equal(t, sysTimezoneOffset, fileTimezoneOffset) } - cleanArtifactoryTest() } func TestUploadDetailedSummary(t *testing.T) {