From 3ba7abcc96ee02837fbfd65c044326c2f1923020 Mon Sep 17 00:00:00 2001 From: Felix Kollmann Date: Wed, 18 Apr 2018 23:04:03 +0200 Subject: [PATCH] os: improved code based on review feedback --- src/os/os_windows_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/os/os_windows_test.go b/src/os/os_windows_test.go index b1b4bd0b5ae..faf0d999925 100644 --- a/src/os/os_windows_test.go +++ b/src/os/os_windows_test.go @@ -1020,7 +1020,6 @@ func TestSymlinkCreation(t *testing.T) { t.Skip("Windows developer mode is not active") } - // create dummy file to symlink temp, err := ioutil.TempDir("", "TestSymlinkCreation") if err != nil { t.Fatal(err) @@ -1030,13 +1029,13 @@ func TestSymlinkCreation(t *testing.T) { dummyFile := filepath.Join(temp, "file") err = ioutil.WriteFile(dummyFile, []byte(""), 0644) if err != nil { - t.Fatalf("Failed to create dummy file: %v", err) + t.Fatal(err) } linkFile := filepath.Join(temp, "link") err = os.Symlink(dummyFile, linkFile) if err != nil { - t.Fatalf("Failed to create symlink: %v", err) + t.Fatal(err) } }