aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/migrate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/migrate_test.go')
-rw-r--r--integrations/migrate_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/integrations/migrate_test.go b/integrations/migrate_test.go
index e79be238d5..c0d5d4fc75 100644
--- a/integrations/migrate_test.go
+++ b/integrations/migrate_test.go
@@ -5,7 +5,6 @@
package integrations
import (
- "io/ioutil"
"os"
"testing"
@@ -25,14 +24,14 @@ func TestMigrateLocalPath(t *testing.T) {
old := setting.ImportLocalPaths
setting.ImportLocalPaths = true
- lowercasePath, err := ioutil.TempDir("", "lowercase") // may not be lowercase because TempDir creates a random directory name which may be mixedcase
+ lowercasePath, err := os.MkdirTemp("", "lowercase") // may not be lowercase because MkdirTemp creates a random directory name which may be mixedcase
assert.NoError(t, err)
defer os.RemoveAll(lowercasePath)
err = migrations.IsMigrateURLAllowed(lowercasePath, adminUser)
assert.NoError(t, err, "case lowercase path")
- mixedcasePath, err := ioutil.TempDir("", "mIxeDCaSe")
+ mixedcasePath, err := os.MkdirTemp("", "mIxeDCaSe")
assert.NoError(t, err)
defer os.RemoveAll(mixedcasePath)