chore: add replDB to team service (#91799)

This commit is contained in:
Kristin Laemmert
2024-08-15 12:19:38 -04:00
committed by GitHub
parent e321dbb690
commit c6ae2d7999
7 changed files with 49 additions and 48 deletions
@@ -636,7 +636,7 @@ func TestIntegrationMergeUser(t *testing.T) {
}
t.Run("should be able to merge user", func(t *testing.T) {
// Restore after destructive operation
sqlStore := db.InitTestDB(t)
sqlStore := db.InitTestReplDB(t)
teamSvc, err := teamimpl.ProvideService(sqlStore, setting.NewCfg(), tracing.InitializeTracerForTest())
require.NoError(t, err)
team1, err := teamSvc.CreateTeam(context.Background(), "team1 name", "", 1)
@@ -714,10 +714,10 @@ func TestIntegrationMergeUser(t *testing.T) {
}
// get users
conflictUsers, err := GetUsersWithConflictingEmailsOrLogins(&cli.Context{Context: context.Background()}, sqlStore)
conflictUsers, err := GetUsersWithConflictingEmailsOrLogins(&cli.Context{Context: context.Background()}, sqlStore.SQLStore)
require.NoError(t, err)
r := ConflictResolver{
Store: sqlStore,
Store: sqlStore.SQLStore,
userService: usertest.NewUserServiceFake(),
ac: actest.FakeService{},
}