Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jproberts committed Jul 25, 2023
1 parent e544e95 commit ace4a17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cmd/go/go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2448,9 +2448,9 @@ func TestCacheCoverage(t *testing.T) {
}

func TestCacheCoverageProfile(t *testing.T) {
tooSlow(t)
tooSlow(t, "links and runs a test binary multiple times with coverage enabled")

if godebug.Get("gocacheverify") == "1" {
if gocacheverify.Value() == "1" {
t.Skip("GODEBUG gocacheverify")
}

Expand Down
4 changes: 2 additions & 2 deletions src/cmd/go/internal/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ func (c *runCache) tryCacheWithID(b *work.Builder, a *work.Action, id string) bo
// The cached coverprofile has the same expiration time as the
// test result it corresponds to. That time is already checked
// above, so we can ignore the entry returned by GetFile here.
f, _, err := cache.Default().GetFile(testCoverProfileKey(testID, testInputsID))
f, _, err := cache.GetFile(cache.Default(), testCoverProfileKey(testID, testInputsID))
if err != nil {
if cache.DebugTest {
fmt.Fprintf(os.Stderr, "testcache: %s: test coverage profile not found: %v\n", a.Package.ImportPath, err)
Expand Down Expand Up @@ -1881,7 +1881,7 @@ func (c *runCache) saveOutput(a *work.Action, coverprofileFile string) {
fmt.Fprintf(os.Stderr, "testcache: %s: save test ID %x => input ID %x => %x\n", a.Package.ImportPath, c.id1, testInputsID, testAndInputKey(c.id1, testInputsID))
}
cache.PutNoVerify(cache.Default(), c.id1, bytes.NewReader(testlog))
cache.PutNoVerify(testAndInputKey(cache.Default(), c.id1, testInputsID), bytes.NewReader(a.TestOutput.Bytes()))
cache.PutNoVerify(cache.Default(), testAndInputKey(c.id1, testInputsID), bytes.NewReader(a.TestOutput.Bytes()))
saveCoverProfile(c.id1)
}
if c.id2 != (cache.ActionID{}) {
Expand Down

0 comments on commit ace4a17

Please sign in to comment.