Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 123ba6b

Browse files
committed
gps: See if ioutil.WriteFile() makes windows happy
1 parent ea9a941 commit 123ba6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/gps/vcs_source_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,10 @@ func TestGitSourceAdaptiveCleanup(t *testing.T) {
697697

698698
// Create a file that git will see as untracked.
699699
untrackedPath := filepath.Join(repodir, "untrackedfile")
700-
f, err := os.Create(untrackedPath)
700+
err = ioutil.WriteFile(untrackedPath, []byte("foo"), 0644)
701701
if err != nil {
702702
t.Fatal(err)
703703
}
704-
f.Close()
705704

706705
mkSM()
707706
err = sm.SyncSourceFor(id)

0 commit comments

Comments
 (0)