Skip to content

Commit

Permalink
Change test threshold to ensure pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Jroland committed May 29, 2015
1 parent 5bce3c3 commit ed49ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kafka-tests/Unit/AsyncLockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class AsyncLockTests
{
[Test]
[ExpectedException(typeof(OperationCanceledException))]
public async void AsyncLockShouldCancelShouldThrowOperationCanceledException()
public async void AsyncLockCancelShouldThrowOperationCanceledException()
{
var count = 0;
var token = new CancellationTokenSource(TimeSpan.FromMilliseconds(10));
Expand Down Expand Up @@ -48,7 +48,7 @@ public async void AsyncLockCancelShouldNotAllowInsideLock()
using (await alock.LockAsync(token.Token))
{
Interlocked.Increment(ref count);
Thread.Sleep(20);
Thread.Sleep(100);
}
}
}
Expand Down

0 comments on commit ed49ce4

Please sign in to comment.