diff options
Diffstat (limited to 'models/db/engine_test.go')
-rw-r--r-- | models/db/engine_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/models/db/engine_test.go b/models/db/engine_test.go index 41279c5005..c26d94c340 100644 --- a/models/db/engine_test.go +++ b/models/db/engine_test.go @@ -5,7 +5,6 @@ package db_test import ( - "os" "path/filepath" "testing" @@ -20,8 +19,7 @@ import ( func TestDumpDatabase(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) - dir, err := os.MkdirTemp(os.TempDir(), "dump") - assert.NoError(t, err) + dir := t.TempDir() type Version struct { ID int64 `xorm:"pk autoincr"` |