From d93e8ddf75565429486039ff4102e704473ca163 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 29 Apr 2022 15:53:04 +0200 Subject: [chore] Add Federatingactor.Send() tests and log call (#509) * expose testrig util functions * add tests for federatingActor * rename some suite vars --- internal/federation/federator_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'internal/federation/federator_test.go') diff --git a/internal/federation/federator_test.go b/internal/federation/federator_test.go index 68ad606f8..0988178d2 100644 --- a/internal/federation/federator_test.go +++ b/internal/federation/federator_test.go @@ -30,27 +30,27 @@ import ( type FederatorStandardTestSuite struct { suite.Suite - db db.DB - storage *kv.KVStore - typeConverter typeutils.TypeConverter - accounts map[string]*gtsmodel.Account - activities map[string]testrig.ActivityWithSignature + db db.DB + storage *kv.KVStore + tc typeutils.TypeConverter + testAccounts map[string]*gtsmodel.Account + testActivities map[string]testrig.ActivityWithSignature } // SetupSuite sets some variables on the suite that we can use as consts (more or less) throughout func (suite *FederatorStandardTestSuite) SetupSuite() { // setup standard items suite.storage = testrig.NewTestStorage() - suite.typeConverter = testrig.NewTestTypeConverter(suite.db) - suite.accounts = testrig.NewTestAccounts() + suite.tc = testrig.NewTestTypeConverter(suite.db) + suite.testAccounts = testrig.NewTestAccounts() } func (suite *FederatorStandardTestSuite) SetupTest() { testrig.InitTestConfig() testrig.InitTestLog() suite.db = testrig.NewTestDB() - suite.activities = testrig.NewTestActivities(suite.accounts) - testrig.StandardDBSetup(suite.db, suite.accounts) + suite.testActivities = testrig.NewTestActivities(suite.testAccounts) + testrig.StandardDBSetup(suite.db, suite.testAccounts) } // TearDownTest drops tables to make sure there's no data in the db -- cgit v1.2.3