diff options
Diffstat (limited to 'integrations/repo_tag_test.go')
-rw-r--r-- | integrations/repo_tag_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/repo_tag_test.go b/integrations/repo_tag_test.go index 05505a644d..abbc2c02fc 100644 --- a/integrations/repo_tag_test.go +++ b/integrations/repo_tag_test.go @@ -5,8 +5,8 @@ package integrations import ( - "io/ioutil" "net/url" + "os" "testing" "code.gitea.io/gitea/models" @@ -55,7 +55,7 @@ func TestCreateNewTagProtected(t *testing.T) { username := "user2" httpContext := NewAPITestContext(t, username, "repo1") - dstPath, err := ioutil.TempDir("", httpContext.Reponame) + dstPath, err := os.MkdirTemp("", httpContext.Reponame) assert.NoError(t, err) defer util.RemoveAll(dstPath) |