aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/lfs_local_endpoint_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/lfs_local_endpoint_test.go')
-rw-r--r--integrations/lfs_local_endpoint_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/integrations/lfs_local_endpoint_test.go b/integrations/lfs_local_endpoint_test.go
index eda418c429..7e0166b381 100644
--- a/integrations/lfs_local_endpoint_test.go
+++ b/integrations/lfs_local_endpoint_test.go
@@ -6,7 +6,6 @@ package integrations
import (
"fmt"
- "io/ioutil"
"net/url"
"os"
"path/filepath"
@@ -25,14 +24,14 @@ func str2url(raw string) *url.URL {
func TestDetermineLocalEndpoint(t *testing.T) {
defer prepareTestEnv(t)()
- root, _ := ioutil.TempDir("", "lfs_test")
+ root, _ := os.MkdirTemp("", "lfs_test")
defer os.RemoveAll(root)
- rootdotgit, _ := ioutil.TempDir("", "lfs_test")
+ rootdotgit, _ := os.MkdirTemp("", "lfs_test")
defer os.RemoveAll(rootdotgit)
os.Mkdir(filepath.Join(rootdotgit, ".git"), 0700)
- lfsroot, _ := ioutil.TempDir("", "lfs_test")
+ lfsroot, _ := os.MkdirTemp("", "lfs_test")
defer os.RemoveAll(lfsroot)
// Test cases