Skip to content

Commit 5931cbe

Browse files
author
David García Vives
committed
Merge remote-tracking branch 'Duracell1989/master' into bugfix/cancellation-token-not-cancelling
2 parents 595ebe7 + bdc60ea commit 5931cbe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Docker.DotNet/Endpoints/StreamUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
using Newtonsoft.Json;
12
using System;
23
using System.IO;
34
using System.Net.Http;
45
using System.Text;
56
using System.Threading;
67
using System.Threading.Tasks;
7-
using Newtonsoft.Json;
88

99
namespace Docker.DotNet.Models
1010
{

test/Docker.DotNet.Tests/ISystemOperations.Tests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ await _client.Images.DeleteImageAsync(
119119
},
120120
cts.Token);
121121

122+
Thread.Sleep(500); // Let's wait some time before cancelling the monitor stream to make sure we got some progress back.
122123
cts.Cancel();
123124

124125
await Assert.ThrowsAsync<TaskCanceledException>(() => task);

0 commit comments

Comments
 (0)