}
func (s *ExecutionMutableStateSuite) TestCreate_ClosedWorkflow_BrandNew() {
execution_mutable_state.go
branchToken, newSnapshot, newEvents := s.CreateWorkflow(
rand.Int63(),
enumsspb.WORKFLOW_EXECUTION_STATE_COMPLETED,
enumspb.WORKFLOW_EXECUTION_STATUS_TERMINATED,
rand.Int63(),
)
s.AssertMSEqualWithDB(chasm.WorkflowArchetypeID, newSnapshot)
s.AssertHEEqualWithDB(branchToken, newEvents)
}
func (s *ExecutionMutableStateSuite) TestCreate_ClosedWorkflow_Bypass() {