Skip to content

Commit 4cb4c84

Browse files
Copilotdanielgerlag
andcommitted
Fix test: Use string value for RunParallel in YAML and add Static binding flag
Co-authored-by: danielgerlag <2357007+danielgerlag@users.noreply.github.com>
1 parent d4d385d commit 4cb4c84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WorkflowCore.DSL/Services/DefinitionLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private void AttachInputs(StepSourceV1 source, Type dataType, Type stepType, Wor
222222
var dataParameter = Expression.Parameter(dataType, "data");
223223
var contextParameter = Expression.Parameter(typeof(IStepExecutionContext), "context");
224224
var environmentVarsParameter = Expression.Parameter(typeof(IDictionary), "environment");
225-
var stepProperty = stepType.GetProperty(input.Key, BindingFlags.Public | BindingFlags.Instance);
225+
var stepProperty = stepType.GetProperty(input.Key, BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
226226

227227
if (stepProperty == null)
228228
{

test/WorkflowCore.UnitTests/Services/DefinitionStorage/YamlInheritedPropertyIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void ShouldBindInheritedPropertiesInYamlDefinition()
3131
StepType: WorkflowCore.TestAssets.Steps.IterateListStep, WorkflowCore.TestAssets
3232
Inputs:
3333
Collection: ""data.DataList""
34-
RunParallel: false
34+
RunParallel: ""false""
3535
";
3636

3737
// Act & Assert

0 commit comments

Comments
 (0)