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

Commit e441dd7

Browse files
committed
gps: See if ioutil.WriteFile() makes windows happy
1 parent 7e96bb2 commit e441dd7

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
@@ -698,11 +698,10 @@ func TestGitSourceAdaptiveCleanup(t *testing.T) {
698698

699699
// Create a file that git will see as untracked.
700700
untrackedPath := filepath.Join(repodir, "untrackedfile")
701-
f, err := os.Create(untrackedPath)
701+
err = ioutil.WriteFile(untrackedPath, []byte("foo"), 644)
702702
if err != nil {
703703
t.Fatal(err)
704704
}
705-
f.Close()
706705

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

0 commit comments

Comments
 (0)