summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-09-26 19:50:08 +0000
committerLibravatar GitHub <noreply@github.com>2024-09-26 19:50:08 +0000
commit58af95a1d5e24950c0a1ab4389289ca70f594ba2 (patch)
tree8709fd97a5641fc070a91f7c7852908971d6bde2 /internal
parent[chore] update go-sched pkg (#3357) (diff)
downloadgotosocial-58af95a1d5e24950c0a1ab4389289ca70f594ba2.tar.xz
[chore] bump go-byteutil v1.2.0 -> v1.3.0 (#3356)
* bump go-byteutil v1.2.0 -> v1.3.0 which has safer (as in long-term API consistency) byte <-> string conversions * fix test relying on byteutil exported type no longer existing
Diffstat (limited to 'internal')
-rw-r--r--internal/transport/delivery/worker_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/transport/delivery/worker_test.go b/internal/transport/delivery/worker_test.go
index 936ce6e1d..192ffcd37 100644
--- a/internal/transport/delivery/worker_test.go
+++ b/internal/transport/delivery/worker_test.go
@@ -18,6 +18,7 @@
package delivery_test
import (
+ "bytes"
"fmt"
"io"
"math/rand"
@@ -27,7 +28,6 @@ import (
"strings"
"testing"
- "codeberg.org/gruf/go-byteutil"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/httpclient"
"github.com/superseriousbusiness/gotosocial/internal/queue"
@@ -176,9 +176,9 @@ func requiresBody(method string) bool {
func (t *testrequest) Generate(addr string) *http.Request {
var body io.ReadCloser
if t.body != nil {
- var b byteutil.ReadNopCloser
+ var b bytes.Reader
b.Reset(t.body)
- body = &b
+ body = io.NopCloser(&b)
}
req, err := http.NewRequest(t.method, addr+t.uri, body)
if err != nil {