Skip to content

Commit

Permalink
update mock buddy broadcaster
Browse files Browse the repository at this point in the history
  • Loading branch information
mk6i committed Jun 18, 2024
1 parent 376afae commit b99fada
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion foodgroup/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ func TestAuthService_Signout(t *testing.T) {
for _, params := range tt.mockParams.deleteUserParams {
legacyBuddyListManager.EXPECT().DeleteUser(params.userScreenName)
}
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tt.mockParams.broadcastBuddyDepartedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down
2 changes: 1 addition & 1 deletion foodgroup/bart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestBARTService_UpsertItem(t *testing.T) {
BARTUpsert(params.itemHash, params.payload).
Return(nil)
}
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tc.mockParams.broadcastBuddyArrivedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down
6 changes: 3 additions & 3 deletions foodgroup/feedbag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ func TestFeedbagService_UpsertItem(t *testing.T) {
WhoAddedUser(params.userScreenName).
Return(params.result)
}
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tc.mockParams.broadcastBuddyArrivedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down Expand Up @@ -1321,7 +1321,7 @@ func TestFeedbagService_DeleteItem(t *testing.T) {
RetrieveByScreenName(params.screenName).
Return(params.sess)
}
buddyUpdateBroadcast := newMockBuddyBroadcaster(t)
buddyUpdateBroadcast := newMockbuddyBroadcaster(t)
for _, params := range tc.mockParams.unicastBuddyArrivedParams {
p := params
buddyUpdateBroadcast.EXPECT().
Expand Down Expand Up @@ -1419,7 +1419,7 @@ func TestFeedbagService_Use(t *testing.T) {
RetrieveByScreenName(params.screenName).
Return(params.sess)
}
buddyUpdateBroadcast := newMockBuddyBroadcaster(t)
buddyUpdateBroadcast := newMockbuddyBroadcaster(t)
for _, params := range tt.mockParams.unicastBuddyArrivedParams {
p := params
buddyUpdateBroadcast.EXPECT().
Expand Down
2 changes: 1 addition & 1 deletion foodgroup/icbm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func TestICBMService_EvilRequest(t *testing.T) {
messageRelayer.EXPECT().
RelayToScreenName(mock.Anything, tc.recipientScreenName, tc.expectSNACToClient).
Maybe()
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tc.mockParams.broadcastBuddyArrivedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down
2 changes: 1 addition & 1 deletion foodgroup/locate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func TestLocateService_SetInfo(t *testing.T) {
SetProfile(params.screenName, params.body).
Return(nil)
}
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tt.mockParams.broadcastBuddyArrivedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down
82 changes: 41 additions & 41 deletions foodgroup/mock_buddy_broadcaster_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions foodgroup/oservice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func TestSetUserInfoFields(t *testing.T) {

for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tc.mockParams.broadcastBuddyArrivedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down Expand Up @@ -1477,7 +1477,7 @@ func TestOServiceService_IdleNotification(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tt.mockParams.broadcastBuddyArrivedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down Expand Up @@ -1619,7 +1619,7 @@ func TestOServiceServiceForBOS_ClientOnline(t *testing.T) {
Buddies(params.userScreenName).
Return(params.result)
}
buddyUpdateBroadcaster := newMockBuddyBroadcaster(t)
buddyUpdateBroadcaster := newMockbuddyBroadcaster(t)
for _, params := range tt.mockParams.broadcastBuddyArrivedParams {
p := params
buddyUpdateBroadcaster.EXPECT().
Expand Down

0 comments on commit b99fada

Please sign in to comment.