From c94c05373f4bc79361ab2fcdd3516c244bc67312 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Wed, 25 Oct 2023 23:11:42 +0200 Subject: Fix lints reported by gopls --- internal/rtree/shared_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/rtree/shared_test.go') 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) } -- cgit v1.3.1