Skip to content

Commit ed49ce4

Browse files
committedMay 29, 2015
Change test threshold to ensure pass
1 parent 5bce3c3 commit ed49ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/kafka-tests/Unit/AsyncLockTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class AsyncLockTests
1515
{
1616
[Test]
1717
[ExpectedException(typeof(OperationCanceledException))]
18-
public async void AsyncLockShouldCancelShouldThrowOperationCanceledException()
18+
public async void AsyncLockCancelShouldThrowOperationCanceledException()
1919
{
2020
var count = 0;
2121
var token = new CancellationTokenSource(TimeSpan.FromMilliseconds(10));
@@ -48,7 +48,7 @@ public async void AsyncLockCancelShouldNotAllowInsideLock()
4848
using (await alock.LockAsync(token.Token))
4949
{
5050
Interlocked.Increment(ref count);
51-
Thread.Sleep(20);
51+
Thread.Sleep(100);
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)
Please sign in to comment.