@@ -164,7 +164,7 @@ func (s *controllerSuite) TestAcquireShardSuccess() {
164
164
myShards = append (myShards , shardID )
165
165
s .mockHistoryEngine .EXPECT ().Start ().Return ()
166
166
// notification step is done after engine is created, so may not be called when test finishes
167
- s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any (), gomock . Any () ).MaxTimes (1 )
167
+ s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any ()).MaxTimes (1 )
168
168
s .mockServiceResolver .EXPECT ().Lookup (convert .Int32ToString (shardID )).Return (s .hostInfo , nil ).Times (2 )
169
169
s .mockEngineFactory .EXPECT ().CreateEngine (gomock .Any ()).Return (s .mockHistoryEngine )
170
170
s .mockShardManager .EXPECT ().GetOrCreateShard (gomock .Any (), getOrCreateShardRequestMatcher (shardID )).Return (
@@ -234,7 +234,7 @@ func (s *controllerSuite) TestAcquireShardsConcurrently() {
234
234
myShards = append (myShards , shardID )
235
235
s .mockHistoryEngine .EXPECT ().Start ().Return ()
236
236
// notification step is done after engine is created, so may not be called when test finishes
237
- s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any (), gomock . Any () ).MaxTimes (1 )
237
+ s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any ()).MaxTimes (1 )
238
238
s .mockServiceResolver .EXPECT ().Lookup (convert .Int32ToString (shardID )).Return (s .hostInfo , nil ).Times (2 )
239
239
s .mockEngineFactory .EXPECT ().CreateEngine (gomock .Any ()).Return (s .mockHistoryEngine )
240
240
s .mockShardManager .EXPECT ().GetOrCreateShard (gomock .Any (), getOrCreateShardRequestMatcher (shardID )).Return (
@@ -313,7 +313,7 @@ func (s *controllerSuite) TestAcquireShardRenewSuccess() {
313
313
for shardID := int32 (1 ); shardID <= numShards ; shardID ++ {
314
314
s .mockHistoryEngine .EXPECT ().Start ().Return ()
315
315
// notification step is done after engine is created, so may not be called when test finishes
316
- s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any (), gomock . Any () ).MaxTimes (1 )
316
+ s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any ()).MaxTimes (1 )
317
317
s .mockServiceResolver .EXPECT ().Lookup (convert .Int32ToString (shardID )).Return (s .hostInfo , nil ).Times (2 )
318
318
s .mockEngineFactory .EXPECT ().CreateEngine (gomock .Any ()).Return (s .mockHistoryEngine )
319
319
s .mockShardManager .EXPECT ().GetOrCreateShard (gomock .Any (), getOrCreateShardRequestMatcher (shardID )).Return (
@@ -377,7 +377,7 @@ func (s *controllerSuite) TestAcquireShardRenewLookupFailed() {
377
377
for shardID := int32 (1 ); shardID <= numShards ; shardID ++ {
378
378
s .mockHistoryEngine .EXPECT ().Start ().Return ()
379
379
// notification step is done after engine is created, so may not be called when test finishes
380
- s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any (), gomock . Any () ).MaxTimes (1 )
380
+ s .mockHistoryEngine .EXPECT ().NotifyNewTasks (gomock .Any ()).MaxTimes (1 )
381
381
s .mockServiceResolver .EXPECT ().Lookup (convert .Int32ToString (shardID )).Return (s .hostInfo , nil ).Times (2 )
382
382
s .mockEngineFactory .EXPECT ().CreateEngine (gomock .Any ()).Return (s .mockHistoryEngine )
383
383
s .mockShardManager .EXPECT ().GetOrCreateShard (gomock .Any (), getOrCreateShardRequestMatcher (shardID )).Return (
@@ -730,7 +730,7 @@ func (s *controllerSuite) TestShardControllerFuzz() {
730
730
mockEngine := NewMockEngine (disconnectedMockController )
731
731
status := new (int32 )
732
732
// notification step is done after engine is created, so may not be called when test finishes
733
- mockEngine .EXPECT ().NotifyNewTasks (gomock .Any (), gomock . Any () ).MaxTimes (1 )
733
+ mockEngine .EXPECT ().NotifyNewTasks (gomock .Any ()).MaxTimes (1 )
734
734
mockEngine .EXPECT ().Start ().Do (func () {
735
735
if ! atomic .CompareAndSwapInt32 (status , common .DaemonStatusInitialized , common .DaemonStatusStarted ) {
736
736
return
@@ -850,7 +850,7 @@ func (s *controllerSuite) setupMocksForAcquireShard(
850
850
// s.mockResource.ExecutionMgr.On("Close").Return()
851
851
mockEngine .EXPECT ().Start ().MinTimes (minTimes )
852
852
// notification step is done after engine is created, so may not be called when test finishes
853
- mockEngine .EXPECT ().NotifyNewTasks (gomock .Any (), gomock . Any () ).MaxTimes (1 )
853
+ mockEngine .EXPECT ().NotifyNewTasks (gomock .Any ()).MaxTimes (1 )
854
854
s .mockServiceResolver .EXPECT ().Lookup (convert .Int32ToString (shardID )).Return (s .hostInfo , nil ).Times (2 ).MinTimes (minTimes )
855
855
s .mockEngineFactory .EXPECT ().CreateEngine (contextMatcher (shardID )).Return (mockEngine ).MinTimes (minTimes )
856
856
s .mockShardManager .EXPECT ().GetOrCreateShard (gomock .Any (), getOrCreateShardRequestMatcher (shardID )).Return (
0 commit comments