@@ -44,12 +44,10 @@ import (
4444)
4545
4646const (
47- defaultTestDomain = "default-test-domain"
48- defaultTestTaskList = "default-test-tasklist"
49- defaultTestWorkflowID = "default-test-workflow-id"
50- defaultTestRunID = "default-test-run-id"
51- defaultTestWorkflowTypeName = "default-test-workflow-type-name"
52- defaultTestDomainName = "default-test-domain-name"
47+ defaultTestDomain = "default-test-domain"
48+ defaultTestTaskList = "default-test-tasklist"
49+ defaultTestWorkflowID = "default-test-workflow-id"
50+ defaultTestRunID = "default-test-run-id"
5351)
5452
5553type (
@@ -441,8 +439,6 @@ func (env *testWorkflowEnvironmentImpl) executeActivity(
441439 defaultTestWorkflowID ,
442440 defaultTestRunID ,
443441 "0" ,
444- defaultTestWorkflowTypeName ,
445- defaultTestDomainName ,
446442 params ,
447443 )
448444
@@ -807,8 +803,6 @@ func (env *testWorkflowEnvironmentImpl) ExecuteActivity(parameters executeActivi
807803 defaultTestWorkflowID ,
808804 defaultTestRunID ,
809805 activityInfo .activityID ,
810- defaultTestWorkflowTypeName ,
811- defaultTestDomainName ,
812806 parameters ,
813807 )
814808
@@ -1371,7 +1365,7 @@ func (env *testWorkflowEnvironmentImpl) newTestActivityTaskHandler(taskList stri
13711365 return taskHandler
13721366}
13731367
1374- func newTestActivityTask (workflowID , runID , activityID , workflowTypeName , domainName string , params executeActivityParams ) * shared.PollForActivityTaskResponse {
1368+ func newTestActivityTask (workflowID , runID , activityID string , params executeActivityParams ) * shared.PollForActivityTaskResponse {
13751369 task := & shared.PollForActivityTaskResponse {
13761370 WorkflowExecution : & shared.WorkflowExecution {
13771371 WorkflowId : common .StringPtr (workflowID ),
@@ -1386,10 +1380,6 @@ func newTestActivityTask(workflowID, runID, activityID, workflowTypeName, domain
13861380 StartedTimestamp : common .Int64Ptr (time .Now ().UnixNano ()),
13871381 StartToCloseTimeoutSeconds : common .Int32Ptr (params .StartToCloseTimeoutSeconds ),
13881382 HeartbeatTimeoutSeconds : common .Int32Ptr (params .HeartbeatTimeoutSeconds ),
1389- WorkflowType : & shared.WorkflowType {
1390- Name : common .StringPtr (workflowTypeName ),
1391- },
1392- WorkflowDomain : common .StringPtr (domainName ),
13931383 }
13941384 return task
13951385}
0 commit comments