aboutsummaryrefslogtreecommitdiff
path: root/src/testing/sub_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/sub_test.go')
-rw-r--r--src/testing/sub_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/sub_test.go b/src/testing/sub_test.go
index bb1715b23f..6d8badfbf8 100644
--- a/src/testing/sub_test.go
+++ b/src/testing/sub_test.go
@@ -477,7 +477,7 @@ func TestTRun(t *T) {
for _, tc := range testCases {
t.Run(tc.desc, func(t *T) {
ctx := newTestContext(tc.maxPar, newMatcher(regexp.MatchString, "", ""))
- buf := &bytes.Buffer{}
+ buf := &strings.Builder{}
root := &T{
common: common{
signal: make(chan bool),
@@ -664,7 +664,7 @@ func TestBRun(t *T) {
for _, tc := range testCases {
t.Run(tc.desc, func(t *T) {
var ok bool
- buf := &bytes.Buffer{}
+ buf := &strings.Builder{}
// This is almost like the Benchmark function, except that we override
// the benchtime and catch the failure result of the subbenchmark.
root := &B{