From bacfc414036ec716718f29fd6fa6afab3830726b Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 27 Jan 2025 14:22:24 +0000 Subject: [PATCH] fix create flag test to use correct function --- internal/federation/federatingdb/create_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/federation/federatingdb/create_test.go b/internal/federation/federatingdb/create_test.go index fffee1432..51f1f3ed7 100644 --- a/internal/federation/federatingdb/create_test.go +++ b/internal/federation/federatingdb/create_test.go @@ -25,6 +25,7 @@ import ( "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/activity/streams" + "github.com/superseriousbusiness/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/id" @@ -115,8 +116,10 @@ func (suite *CreateTestSuite) TestCreateFlag1() { suite.FailNow(err.Error()) } + flag := t.(vocab.ActivityStreamsFlag) + ctx := createTestContext(reportedAccount, reportingAccount) - if err := suite.federatingDB.Create(ctx, t); err != nil { + if err := suite.federatingDB.Flag(ctx, flag); err != nil { suite.FailNow(err.Error()) }