aboutsummaryrefslogtreecommitdiff
path: root/internal/stdlib/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'internal/stdlib/testdata')
-rw-r--r--internal/stdlib/testdata/v1.12.5/src/context/context_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/stdlib/testdata/v1.12.5/src/context/context_test.go b/internal/stdlib/testdata/v1.12.5/src/context/context_test.go
index f73f2837..0b6ca742 100644
--- a/internal/stdlib/testdata/v1.12.5/src/context/context_test.go
+++ b/internal/stdlib/testdata/v1.12.5/src/context/context_test.go
@@ -139,18 +139,18 @@ func XTestParentFinishesChild(t testingT) {
// The parent's children should contain the two cancelable children.
pc := parent.(*cancelCtx)
cc := cancelChild.(*cancelCtx)
- tc := timerChild.(*timerCtx)
+ test := timerChild.(*timerCtx)
pc.mu.Lock()
- if len(pc.children) != 2 || !contains(pc.children, cc) || !contains(pc.children, tc) {
+ if len(pc.children) != 2 || !contains(pc.children, cc) || !contains(pc.children, test) {
t.Errorf("bad linkage: pc.children = %v, want %v and %v",
- pc.children, cc, tc)
+ pc.children, cc, test)
}
pc.mu.Unlock()
if p, ok := parentCancelCtx(cc.Context); !ok || p != pc {
t.Errorf("bad linkage: parentCancelCtx(cancelChild.Context) = %v, %v want %v, true", p, ok, pc)
}
- if p, ok := parentCancelCtx(tc.Context); !ok || p != pc {
+ if p, ok := parentCancelCtx(test.Context); !ok || p != pc {
t.Errorf("bad linkage: parentCancelCtx(timerChild.Context) = %v, %v want %v, true", p, ok, pc)
}