Skip to content

Commit

Permalink
Remove Once() from mock
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Jan 13, 2025
1 parent f3b4098 commit 3769556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/rpc_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func TestTrackRPCServiceHealth_HealthyService(t *testing.T) {
}
}`))),
}
mockHTTPClient.On("Post", "http://test-url", "application/json", mock.Anything).Return(mockResponse, nil).Once()
mockHTTPClient.On("Post", "http://test-url", "application/json", mock.Anything).Return(mockResponse, nil)

// Get result from heartbeat channel
select {
Expand Down

0 comments on commit 3769556

Please sign in to comment.