@@ -279,15 +279,15 @@ func (s *SessionTestSuite) TestRecreation() {
279279}
280280
281281func (s * SessionTestSuite ) TestMaxConcurrentSession_CreationOnly () {
282- maxConCurrentSessionExecutionSize := 3
282+ maxConcurrentSessionExecutionSize := 3
283283 workflowFn := func (ctx Context ) error {
284284 ao := ActivityOptions {
285285 ScheduleToStartTimeout : time .Minute ,
286286 StartToCloseTimeout : time .Minute ,
287287 HeartbeatTimeout : time .Second * 20 ,
288288 }
289289 ctx = WithActivityOptions (ctx , ao )
290- for i := 0 ; i != maxConCurrentSessionExecutionSize + 1 ; i ++ {
290+ for i := 0 ; i != maxConcurrentSessionExecutionSize + 1 ; i ++ {
291291 if _ , err := s .createSessionWithoutRetry (ctx ); err != nil {
292292 return err
293293 }
@@ -298,7 +298,7 @@ func (s *SessionTestSuite) TestMaxConcurrentSession_CreationOnly() {
298298 RegisterWorkflow (workflowFn )
299299 env := s .NewTestWorkflowEnvironment ()
300300 env .SetWorkerOptions (WorkerOptions {
301- MaxConCurrentSessionExecutionSize : maxConCurrentSessionExecutionSize ,
301+ MaxConcurrentSessionExecutionSize : maxConcurrentSessionExecutionSize ,
302302 })
303303 env .ExecuteWorkflow (workflowFn )
304304
@@ -307,7 +307,7 @@ func (s *SessionTestSuite) TestMaxConcurrentSession_CreationOnly() {
307307}
308308
309309func (s * SessionTestSuite ) TestMaxConcurrentSession_WithRecreation () {
310- maxConCurrentSessionExecutionSize := 3
310+ maxConcurrentSessionExecutionSize := 3
311311 workflowFn := func (ctx Context ) error {
312312 ao := ActivityOptions {
313313 ScheduleToStartTimeout : time .Minute ,
@@ -324,7 +324,7 @@ func (s *SessionTestSuite) TestMaxConcurrentSession_WithRecreation() {
324324 return errors .New ("Returned session info should not be nil" )
325325 }
326326
327- for i := 0 ; i != maxConCurrentSessionExecutionSize ; i ++ {
327+ for i := 0 ; i != maxConcurrentSessionExecutionSize ; i ++ {
328328 if i % 2 == 0 {
329329 _ , err = s .createSessionWithoutRetry (ctx )
330330 } else {
@@ -340,7 +340,7 @@ func (s *SessionTestSuite) TestMaxConcurrentSession_WithRecreation() {
340340 RegisterWorkflow (workflowFn )
341341 env := s .NewTestWorkflowEnvironment ()
342342 env .SetWorkerOptions (WorkerOptions {
343- MaxConCurrentSessionExecutionSize : maxConCurrentSessionExecutionSize ,
343+ MaxConcurrentSessionExecutionSize : maxConcurrentSessionExecutionSize ,
344344 })
345345 env .ExecuteWorkflow (workflowFn )
346346
0 commit comments