From d8e16a226a570a7d262bdeb067273ce35b03cc7c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 17 Jun 2023 17:49:11 +0200 Subject: [chore/bugfix] Refactor `ap/extract.go` functions, return URIs more reliably (#1897) --- internal/ap/extractattachments_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/ap/extractattachments_test.go') diff --git a/internal/ap/extractattachments_test.go b/internal/ap/extractattachments_test.go index 0005374ba..e3a40c7bb 100644 --- a/internal/ap/extractattachments_test.go +++ b/internal/ap/extractattachments_test.go @@ -34,7 +34,7 @@ func (suite *ExtractAttachmentsTestSuite) TestExtractAttachmentMissingURL() { d1.SetActivityStreamsUrl(streams.NewActivityStreamsUrlProperty()) attachment, err := ap.ExtractAttachment(d1) - suite.EqualError(err, "could not extract url") + suite.EqualError(err, "ExtractAttachment: error extracting attachment URL: ExtractURL: no valid URL property found") suite.Nil(attachment) } -- cgit v1.2.3