Skip to content

Commit 3ba7abc

Browse files
committed
os: improved code based on review feedback
1 parent 4d68b14 commit 3ba7abc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/os/os_windows_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,6 @@ func TestSymlinkCreation(t *testing.T) {
10201020
t.Skip("Windows developer mode is not active")
10211021
}
10221022

1023-
// create dummy file to symlink
10241023
temp, err := ioutil.TempDir("", "TestSymlinkCreation")
10251024
if err != nil {
10261025
t.Fatal(err)
@@ -1030,13 +1029,13 @@ func TestSymlinkCreation(t *testing.T) {
10301029
dummyFile := filepath.Join(temp, "file")
10311030
err = ioutil.WriteFile(dummyFile, []byte(""), 0644)
10321031
if err != nil {
1033-
t.Fatalf("Failed to create dummy file: %v", err)
1032+
t.Fatal(err)
10341033
}
10351034

10361035
linkFile := filepath.Join(temp, "link")
10371036
err = os.Symlink(dummyFile, linkFile)
10381037
if err != nil {
1039-
t.Fatalf("Failed to create symlink: %v", err)
1038+
t.Fatal(err)
10401039
}
10411040
}
10421041

0 commit comments

Comments
 (0)