fix tests
This commit is contained in:
parent
5781af6b3b
commit
be9bf5ebc5
1 changed files with 6 additions and 1 deletions
|
@ -143,8 +143,13 @@ namespace BirdsiteLive.Pipeline.Tests.Processors
|
|||
var processor = new RetrieveTwitterUsersProcessor(twitterUserDalMock.Object, maxUsersNumberProviderMock.Object, loggerMock.Object);
|
||||
processor.WaitFactor = 2;
|
||||
var t = processor.GetTwitterUsersAsync(buffer, CancellationToken.None);
|
||||
var t2 = Task.Run(async () =>
|
||||
{
|
||||
while (buffer.Count < 11)
|
||||
await Task.Delay(50);
|
||||
});
|
||||
|
||||
await Task.WhenAny(t, Task.Delay(400));
|
||||
await Task.WhenAny(t, t2, Task.Delay(2000));
|
||||
|
||||
#region Validations
|
||||
maxUsersNumberProviderMock.VerifyAll();
|
||||
|
|
Reference in a new issue