From 123ba6be14f9112112a886ffc63ccbd7a05c5b26 Mon Sep 17 00:00:00 2001 From: sam boyer Date: Fri, 27 Oct 2017 00:29:33 -0400 Subject: [PATCH] gps: See if ioutil.WriteFile() makes windows happy --- internal/gps/vcs_source_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/gps/vcs_source_test.go b/internal/gps/vcs_source_test.go index 47a1e44628..e3cfb83b9e 100644 --- a/internal/gps/vcs_source_test.go +++ b/internal/gps/vcs_source_test.go @@ -697,11 +697,10 @@ func TestGitSourceAdaptiveCleanup(t *testing.T) { // Create a file that git will see as untracked. untrackedPath := filepath.Join(repodir, "untrackedfile") - f, err := os.Create(untrackedPath) + err = ioutil.WriteFile(untrackedPath, []byte("foo"), 0644) if err != nil { t.Fatal(err) } - f.Close() mkSM() err = sm.SyncSourceFor(id)