Skip to content

Commit ace4a17

Browse files
committed
resolve conflicts
1 parent e544e95 commit ace4a17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cmd/go/go_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,9 +2448,9 @@ func TestCacheCoverage(t *testing.T) {
24482448
}
24492449

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

2453-
if godebug.Get("gocacheverify") == "1" {
2453+
if gocacheverify.Value() == "1" {
24542454
t.Skip("GODEBUG gocacheverify")
24552455
}
24562456

src/cmd/go/internal/test/test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ func (c *runCache) tryCacheWithID(b *work.Builder, a *work.Action, id string) bo
16721672
// The cached coverprofile has the same expiration time as the
16731673
// test result it corresponds to. That time is already checked
16741674
// above, so we can ignore the entry returned by GetFile here.
1675-
f, _, err := cache.Default().GetFile(testCoverProfileKey(testID, testInputsID))
1675+
f, _, err := cache.GetFile(cache.Default(), testCoverProfileKey(testID, testInputsID))
16761676
if err != nil {
16771677
if cache.DebugTest {
16781678
fmt.Fprintf(os.Stderr, "testcache: %s: test coverage profile not found: %v\n", a.Package.ImportPath, err)
@@ -1881,7 +1881,7 @@ func (c *runCache) saveOutput(a *work.Action, coverprofileFile string) {
18811881
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))
18821882
}
18831883
cache.PutNoVerify(cache.Default(), c.id1, bytes.NewReader(testlog))
1884-
cache.PutNoVerify(testAndInputKey(cache.Default(), c.id1, testInputsID), bytes.NewReader(a.TestOutput.Bytes()))
1884+
cache.PutNoVerify(cache.Default(), testAndInputKey(c.id1, testInputsID), bytes.NewReader(a.TestOutput.Bytes()))
18851885
saveCoverProfile(c.id1)
18861886
}
18871887
if c.id2 != (cache.ActionID{}) {

0 commit comments

Comments
 (0)