Skip to content

Commit

Permalink
unit test for fixed behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
yuandrew committed Oct 28, 2024
1 parent d196da2 commit ca909b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/internal_workflow_testsuite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4257,8 +4257,9 @@ func (s *WorkflowTestSuiteUnitTest) Test_SignalLoss() {
})
selector.Select(ctx)
fmt.Println("ch1.Len()", ch1.Len(), "s", v)
// default behavior is this signal is lost
s.Require().True(ch1.Len() == 0 && v == "s2")
// testWorkflowEnvironmentImpl.TryUse always returns true for flags
// test for fixed behavior
s.Require().True(ch1.Len() == 1 && v == "s2")

return nil
}
Expand Down

0 comments on commit ca909b6

Please sign in to comment.