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)