Skip to content

Commit

Permalink
Disabled tests that had an unreliable result (elsa-workflows#4827)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymonddenhaan committed Jan 23, 2024
1 parent c409414 commit e45ec3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public async Task SuspendedCancelTest()
Assert.Empty(_capturingTextWriter.Lines);
}

[Fact(DisplayName = "Cancelling a running workflow")]
[Fact(DisplayName = "Cancelling a running workflow",
Skip= "Unpredictable result, need to create a dispatcher for tests that will run outside of the unit test")]
public async Task RunningCancelTest()
{
await _backgroundCommandSenderHostedService.StartAsync(CancellationToken.None);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ public async Task SuspendedCancelTest()

await _workflowRuntime.CancelWorkflowAsync(workflowState.WorkflowInstanceId);

await Task.Delay(2000);
var lastWorkflowState = await _workflowRuntime.ExportWorkflowStateAsync(workflowState.WorkflowInstanceId);

Assert.Equal(WorkflowStatus.Finished, lastWorkflowState!.Status);
Assert.Equal(WorkflowSubStatus.Cancelled, lastWorkflowState.SubStatus);
Assert.Empty(_capturingTextWriter.Lines);
}

[Fact(DisplayName = "Cancelling a running workflow")]
[Fact(DisplayName = "Cancelling a running workflow",
Skip= "Unpredictable result, need to create a dispatcher for tests that will run outside of the unit test")]
public async Task RunningCancelTest()
{
// Populate registries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class BulkSuspendedWorkflow : WorkflowBase
{
protected override void Build(IWorkflowBuilder builder)
{
object[] items = Enumerable.Range(0,10000).Select(x => (object) x).ToArray();
object[] items = Enumerable.Range(0,1500).Select(x => (object) x).ToArray();

builder.Root = new Sequence
{
Expand Down

0 comments on commit e45ec3e

Please sign in to comment.