@@ -115,7 +115,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
115115 WorkflowId : s .workflowID ,
116116 RunId : s .currentRunID ,
117117 },
118- workflow .CallerTypeAPI ,
118+ workflow .LockPriorityHigh ,
119119 ).Return (wfContext , releaseFn , nil )
120120 wfContext .EXPECT ().LoadMutableState (ctx ).Return (mutableState , nil )
121121
@@ -124,6 +124,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
124124 & shardOwnershipAsserted ,
125125 BypassMutableStateConsistencyPredicate ,
126126 definition .NewWorkflowKey (s .namespaceID , s .workflowID , s .currentRunID ),
127+ workflow .LockPriorityHigh ,
127128 )
128129 s .NoError (err )
129130 s .Equal (mutableState , workflowContext .GetMutableState ())
@@ -147,7 +148,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
147148 WorkflowId : s .workflowID ,
148149 RunId : s .currentRunID ,
149150 },
150- workflow .CallerTypeAPI ,
151+ workflow .LockPriorityHigh ,
151152 ).Return (wfContext , releaseFn , nil )
152153 gomock .InOrder (
153154 wfContext .EXPECT ().LoadMutableState (ctx ).Return (mutableState1 , nil ),
@@ -160,6 +161,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
160161 & shardOwnershipAsserted ,
161162 FailMutableStateConsistencyPredicate ,
162163 definition .NewWorkflowKey (s .namespaceID , s .workflowID , s .currentRunID ),
164+ workflow .LockPriorityHigh ,
163165 )
164166 s .NoError (err )
165167 s .Equal (mutableState2 , workflowContext .GetMutableState ())
@@ -181,7 +183,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
181183 WorkflowId : s .workflowID ,
182184 RunId : s .currentRunID ,
183185 },
184- workflow .CallerTypeAPI ,
186+ workflow .LockPriorityHigh ,
185187 ).Return (wfContext , releaseFn , nil )
186188 wfContext .EXPECT ().LoadMutableState (ctx ).Return (nil , serviceerror .NewNotFound ("" ))
187189
@@ -192,6 +194,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
192194 & shardOwnershipAsserted ,
193195 FailMutableStateConsistencyPredicate ,
194196 definition .NewWorkflowKey (s .namespaceID , s .workflowID , s .currentRunID ),
197+ workflow .LockPriorityHigh ,
195198 )
196199 s .IsType (& serviceerror.NotFound {}, err )
197200 s .Nil (workflowContext )
@@ -213,7 +216,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
213216 WorkflowId : s .workflowID ,
214217 RunId : s .currentRunID ,
215218 },
216- workflow .CallerTypeAPI ,
219+ workflow .LockPriorityHigh ,
217220 ).Return (wfContext , releaseFn , nil )
218221 wfContext .EXPECT ().LoadMutableState (ctx ).Return (nil , serviceerror .NewNotFound ("" ))
219222
@@ -224,6 +227,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
224227 & shardOwnershipAsserted ,
225228 FailMutableStateConsistencyPredicate ,
226229 definition .NewWorkflowKey (s .namespaceID , s .workflowID , s .currentRunID ),
230+ workflow .LockPriorityHigh ,
227231 )
228232 s .IsType (& persistence.ShardOwnershipLostError {}, err )
229233 s .Nil (workflowContext )
@@ -245,7 +249,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
245249 WorkflowId : s .workflowID ,
246250 RunId : s .currentRunID ,
247251 },
248- workflow .CallerTypeAPI ,
252+ workflow .LockPriorityHigh ,
249253 ).Return (wfContext , releaseFn , nil )
250254 wfContext .EXPECT ().LoadMutableState (ctx ).Return (nil , serviceerror .NewUnavailable ("" ))
251255
@@ -254,6 +258,7 @@ func (s *workflowConsistencyCheckerSuite) TestGetWorkflowContextValidatedByCheck
254258 & shardOwnershipAsserted ,
255259 FailMutableStateConsistencyPredicate ,
256260 definition .NewWorkflowKey (s .namespaceID , s .workflowID , s .currentRunID ),
261+ workflow .LockPriorityHigh ,
257262 )
258263 s .IsType (& serviceerror.Unavailable {}, err )
259264 s .Nil (workflowContext )
0 commit comments