Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
- release/*
tags: [ '*' ]
pull_request:
branches:
- main
- release/*
- dotnet-vnext
workflow_dispatch:
Comment thread
martincostello marked this conversation as resolved.

env:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- main
- release/*
pull_request:
branches:
- main
- release/*
- dotnet-vnext
schedule:
- cron: '0 8 * * MON'
Comment thread
martincostello marked this conversation as resolved.
workflow_dispatch:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: dependency-review

on:
pull_request:
branches:
- main
- release/*
- dotnet-vnext

permissions: {}
Comment thread
martincostello marked this conversation as resolved.

Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- main
- release/*
pull_request:
branches:
- main
- release/*
- dotnet-vnext
workflow_dispatch:

Comment thread
martincostello marked this conversation as resolved.
permissions: {}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
- '**/*.gitignore'
- '**/*.md'
pull_request:
branches:
- main
- release/*
- dotnet-vnext
workflow_dispatch:
Comment thread
martincostello marked this conversation as resolved.

permissions: {}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- main
- release/*
pull_request:
branches:
- main
- release/*
- dotnet-vnext
workflow_dispatch:
Comment thread
martincostello marked this conversation as resolved.

env:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/updater-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: updater-approve

on:
pull_request:
branches:
- main
- release/*
- dotnet-vnext

permissions: {}
Comment thread
martincostello marked this conversation as resolved.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,28 @@ public void Dispose_WhenScheduledTaskExecuting()
[Fact]
public void ScheduleTask_InlineContinuationDoesNotDeadlock()
{
var timeout = TimeSpan.FromSeconds(1);
var timeout = TimeSpan.FromSeconds(10);
using var scheduler = new ScheduledTaskExecutor();

var secondTaskSource = new TaskCompletionSource<Task>(TaskCreationOptions.RunContinuationsAsynchronously);

var firstTask = scheduler.ScheduleTask(() => Task.CompletedTask);

var continuationTask = firstTask.ContinueWith(
_ =>
{
var secondTask = scheduler.ScheduleTask(() => Task.CompletedTask);
secondTask.Wait(timeout);
secondTaskSource.TrySetResult(secondTask);
Comment thread
martincostello marked this conversation as resolved.
Outdated
},
CancellationToken,
TaskContinuationOptions.ExecuteSynchronously,
TaskScheduler.Default);

#pragma warning disable xUnit1031 // Do not use blocking task operations in test method
continuationTask.Wait(timeout).ShouldBeTrue();
secondTaskSource.Task.Wait(timeout).ShouldBeTrue();
secondTaskSource.Task.Result.Wait(timeout).ShouldBeTrue();
#pragma warning restore xUnit1031
Comment thread
martincostello marked this conversation as resolved.
Comment thread
martincostello marked this conversation as resolved.
}

[Fact]
Expand Down
Loading