Skip to content

Commit

Permalink
Fixed for usnit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thomas committed Oct 15, 2024
1 parent e4b5964 commit ca50172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dotnet/src/Experimental/Process.LocalRuntime/LocalStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ protected virtual async ValueTask InitializeStepAsync()
}

stateObject = (KernelProcessStepState?)Activator.CreateInstance(stateType, this.Name, this.Id);
stateType.GetProperty(nameof(KernelProcessStepState<object>.State))?.SetValue(stateObject, Activator.CreateInstance(userStateType));
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/IntegrationTests/Processes/ProcessTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ await context.EmitEventAsync(new()
/// </summary>
private sealed class FanInStep : KernelProcessStep<StepState>
{
private StepState? _state = new();
private StepState? _state;

public override ValueTask ActivateAsync(KernelProcessStepState<StepState> state)
{
Expand Down

0 comments on commit ca50172

Please sign in to comment.