File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
cmd/gh-classroom/clone/utils Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
package utils
2
2
3
3
import (
4
- "io/ioutil"
5
4
"os"
6
5
"testing"
7
6
"bytes"
@@ -11,7 +10,7 @@ import (
11
10
)
12
11
13
12
func TestCloneRepository (t * testing.T ) {
14
- tmpDir , err := ioutil . TempDir ("" , "cloneTest" )
13
+ tmpDir , err := os . MkdirTemp ("" , "cloneTest" )
15
14
if err != nil {
16
15
t .Fatalf ("Failed to create temp directory: %v" , err )
17
16
}
@@ -65,7 +64,7 @@ func TestCloneRepository(t *testing.T) {
65
64
t .Run (tt .name , func (t * testing.T ) {
66
65
if tt .name == "successful clone" {
67
66
fmt .Println ("Running successful clone test" )
68
- tmpDir , err := ioutil . TempDir ("" , "cloneTest" )
67
+ tmpDir , err := os . MkdirTemp ("" , "cloneTest" )
69
68
if err != nil {
70
69
t .Fatalf ("Failed to create temp directory: %v" , err )
71
70
}
You can’t perform that action at this time.
0 commit comments