summaryrefslogtreecommitdiff
path: root/internal/ap/ap_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ap/ap_test.go')
-rw-r--r--internal/ap/ap_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/ap/ap_test.go b/internal/ap/ap_test.go
index 583a37c53..0a9f66ca6 100644
--- a/internal/ap/ap_test.go
+++ b/internal/ap/ap_test.go
@@ -18,8 +18,10 @@
package ap_test
import (
+ "bytes"
"context"
"encoding/json"
+ "io"
"github.com/stretchr/testify/suite"
"github.com/superseriousbusiness/activity/pub"
@@ -187,7 +189,10 @@ func (suite *APTestSuite) noteWithHashtags1() ap.Statusable {
}
}`)
- statusable, err := ap.ResolveStatusable(context.Background(), noteJson)
+ statusable, err := ap.ResolveStatusable(
+ context.Background(),
+ io.NopCloser(bytes.NewReader(noteJson)),
+ )
if err != nil {
suite.FailNow(err.Error())
}