@@ -270,36 +270,6 @@ func (s *standaloneActivityTestSuite) TestIDConflictPolicy() {
270270 })
271271}
272272
273- func (s * standaloneActivityTestSuite ) TestServerGeneratedRequestIDStableAcrossRetries () {
274- t := s .T ()
275- ctx , cancel := context .WithTimeout (t .Context (), 10 * time .Second )
276- defer cancel ()
277-
278- activityID := testcore .RandomizeStr (t .Name ())
279- taskQueue := testcore .RandomizeStr (t .Name ())
280-
281- // Make the handler fail once with a retryable error so the RetryableInterceptor retries.
282- activity .TestStartFailOnce .Store (true )
283-
284- resp , err := s .FrontendClient ().StartActivityExecution (ctx , & workflowservice.StartActivityExecutionRequest {
285- Namespace : s .Namespace ().String (),
286- ActivityId : activityID ,
287- ActivityType : s .tv .ActivityType (),
288- Identity : s .tv .WorkerIdentity (),
289- Input : defaultInput ,
290- TaskQueue : & taskqueuepb.TaskQueue {
291- Name : taskQueue ,
292- },
293- StartToCloseTimeout : durationpb .New (defaultStartToCloseTimeout ),
294- // No RequestId — server generates one.
295- })
296- // With the fix, the retry uses the same request ID, so history recognizes it as a dedup
297- // and succeeds (with Started=false). Without the fix, the retry generates a new request ID
298- // and gets ActivityExecutionAlreadyStarted.
299- require .NoError (t , err )
300- require .NotNil (t , resp )
301- }
302-
303273func (s * standaloneActivityTestSuite ) TestPollActivityTaskQueue () {
304274 t := s .T ()
305275 ctx , cancel := context .WithTimeout (t .Context (), 10 * time .Second )
0 commit comments