summaryrefslogtreecommitdiff
path: root/internal/rtree/shared_test.go
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-10-25 23:11:42 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-10-25 23:11:42 +0200
commitc94c05373f4bc79361ab2fcdd3516c244bc67312 (patch)
treec38350d307cc762ce35116a9cd6691b509f74bbb /internal/rtree/shared_test.go
parentf9543a57a8c40e2444715571050824860d127d58 (diff)
downloadgofu-c94c05373f4bc79361ab2fcdd3516c244bc67312.tar.gz
Fix lints reported by gopls
Diffstat (limited to 'internal/rtree/shared_test.go')
-rw-r--r--internal/rtree/shared_test.go4
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)
}