diff --git a/loadfile/loadfile_test.go b/loadfile/loadfile_test.go index 6e876ca..e2f3e16 100644 --- a/loadfile/loadfile_test.go +++ b/loadfile/loadfile_test.go @@ -22,12 +22,12 @@ func Test_LoadContext(t *testing.T) { // create a directory dirPrefix := "mydir" - dirPath, err := os.MkdirTemp(testdir, dirPrefix+"*") + dirPath, err := os.MkdirTemp(testdir, dirPrefix) assert.NoError(t, err) // create a file filenamePrefix := "myfile" - f, err := os.CreateTemp(dirPath, filenamePrefix+"*") + f, err := os.CreateTemp(dirPath, filenamePrefix) assert.NoError(t, err) filePath := f.Name() assert.NoError(t, f.Close())