diff options
Diffstat (limited to 'internal/rtree/shared_test.go')
| -rw-r--r-- | internal/rtree/shared_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rtree/shared_test.go b/internal/rtree/shared_test.go index 2869c3c..3bfdaba 100644 --- a/internal/rtree/shared_test.go +++ b/internal/rtree/shared_test.go @@ -94,11 +94,11 @@ func (test Test) Run(t *testing.T) { } //check output - output := string(stdout.Bytes()) + output := stdout.String() if output != test.ExpectOutput { t.Errorf("%s: expected stdout %#v, but got %#v", t.Name(), test.ExpectOutput, output) } - output = string(stderr.Bytes()) + output = stderr.String() if output != test.ExpectError { t.Errorf("%s: expected stderr %#v, but got %#v", t.Name(), test.ExpectError, output) } |
