Skip to content

Commit 976e28b

Browse files
akoclaude
andcommitted
fix: update empty-else merge test to use ExpressionCase after #492
PR #492 changed boolean IF-branch flows from EnumerationCase to ExpressionCase. The regression test was asserting on the old type directly; switch to flowCaseString() to handle all CaseValue variants uniformly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f26a27e commit 976e28b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdl/executor/cmd_microflows_builder_empty_else_merge_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestIfEmptyElseBodyWithContinuingThenEmitsFalseFlowToMerge(t *testing.T) {
5353
if flow.OriginID != split.ID || flow.DestinationID != merge.ID {
5454
continue
5555
}
56-
if ec, ok := flow.CaseValue.(microflows.EnumerationCase); ok && ec.Value == "false" {
56+
if flowCaseString(flow.CaseValue) == "false" {
5757
hasFalseFlow = true
5858
}
5959
}

0 commit comments

Comments
 (0)