Skip to content

Commit cbf2b52

Browse files
Fix batch deployment test nil pointer exception (#769)
1 parent 728274a commit cbf2b52

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

temporalcli/commands.workflow_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@ func (s *SharedServerSuite) TestWorkflow_Batch_Update_Options_Versioning_Overrid
528528

529529
var jsonResp workflowservice.DescribeWorkflowExecutionResponse
530530
assert.NoError(t, temporalcli.UnmarshalProtoJSONWithOptions(res.Stdout.Bytes(), &jsonResp, true))
531-
versioningInfo := jsonResp.WorkflowExecutionInfo.VersioningInfo
531+
532+
versioningInfo := jsonResp.GetWorkflowExecutionInfo().GetVersioningInfo()
533+
assert.NotNil(t, versioningInfo)
532534
assert.NotNil(t, versioningInfo.VersioningOverride)
533535
assert.Equal(t, version2, versioningInfo.VersioningOverride.PinnedVersion)
534536
}

0 commit comments

Comments
 (0)