Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .pipelines/dev-tunnels-ssh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ jobs:
- task: EsrpRelease@11
condition: and(succeeded(), eq('${{ parameters.PublishNpmPackage }}', 'true'))
inputs:
connectedservicename: 'Devtunnels-esrp-ame-msi'
connectedservicename: 'Devtunnels-esrp-ame-msi-wif2'
usemanagedidentity: true
keyvaultname: 'tunnels-ppe-esrp-kv'
signcertname: 'esrp-sign'
Expand Down
7 changes: 4 additions & 3 deletions test/cs/Ssh.Test/ChannelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ private static Action InstallOpenCancelRaceHook(
cancellationSource.Token.Register(
() => callbackStarted.TrySetResult(true));

// Cancel on a background thread. Cancel() invokes all registered
// callbacks sequentially on its thread before returning.
Task.Run(() => cancellationSource.Cancel());
// Cancel on a dedicated thread (not the thread pool, which can be
// starved under CI load). Cancel() invokes all registered callbacks
// sequentially on this thread before returning.
new Thread(() => cancellationSource.Cancel()) { IsBackground = true }.Start();

// Wait for a monitoring callback to fire. Since Cancel() executes
// callbacks sequentially, the internal callback starts immediately
Expand Down
Loading