From 4043ee97849eb4dd9072bf60c34d5ddd19ea12b6 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 dfd743532c..202770055d 100644 --- a/internal/gps/vcs_source_test.go +++ b/internal/gps/vcs_source_test.go @@ -698,11 +698,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)