@@ -311,6 +311,8 @@ func (s *matchingEngineSuite) PollForDecisionTasksResultTest() {
311
311
}
312
312
resp , err := pollTask (s .matchingEngine , s .handlerContext , pollReq )
313
313
s .NoError (err )
314
+ s .NotNil (resp .AutoConfigHint )
315
+ resp .AutoConfigHint = nil
314
316
s .Equal (& pollTaskResponse {}, resp )
315
317
// add task to sticky tasklist again, this time it should pass
316
318
_ , err = addTask (s .matchingEngine , s .handlerContext , addRequest )
@@ -363,6 +365,8 @@ func (s *matchingEngineSuite) PollForTasksEmptyResultTest(callContext context.Co
363
365
Identity : identity ,
364
366
}
365
367
pollResp , err := pollTask (s .matchingEngine , s .handlerContext , pollReq )
368
+ s .NotNil (pollResp .AutoConfigHint )
369
+ pollResp .AutoConfigHint = nil // poller wait time is not a fixed value, exclude it from comparison
366
370
s .NoError (err )
367
371
s .Equal (& pollTaskResponse {}, pollResp )
368
372
@@ -952,6 +956,8 @@ func (s *matchingEngineSuite) PollWithExpiredContext(taskType int) {
952
956
s .handlerContext .Context = ctx
953
957
resp , err := pollTask (s .matchingEngine , s .handlerContext , pollReq )
954
958
s .Nil (err )
959
+ s .NotNil (resp .AutoConfigHint )
960
+ resp .AutoConfigHint = nil
955
961
s .Equal (& pollTaskResponse {}, resp )
956
962
}
957
963
@@ -1134,6 +1140,8 @@ func (s *matchingEngineSuite) UnloadTasklistOnIsolationConfigChange(taskType int
1134
1140
}
1135
1141
result , err := pollTask (s .matchingEngine , s .handlerContext , pollReq )
1136
1142
s .NoError (err )
1143
+ s .NotNil (result .AutoConfigHint )
1144
+ result .AutoConfigHint = nil
1137
1145
s .Equal (& pollTaskResponse {}, result )
1138
1146
1139
1147
result , err = pollTask (s .matchingEngine , s .handlerContext , pollReq )
@@ -1644,6 +1652,7 @@ func pollTask(engine *matchingEngineImpl, hCtx *handlerContext, request *pollTas
1644
1652
WorkflowType : resp .WorkflowType ,
1645
1653
WorkflowDomain : resp .WorkflowDomain ,
1646
1654
Header : resp .Header ,
1655
+ AutoConfigHint : resp .AutoConfigHint ,
1647
1656
}, nil
1648
1657
}
1649
1658
resp , err := engine .PollForDecisionTask (hCtx , & types.MatchingPollForDecisionTaskRequest {
0 commit comments