diff --git a/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages.cs b/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages.cs index 26ffbd852..c3382b242 100644 --- a/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages.cs +++ b/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages.cs @@ -101,10 +101,11 @@ public async Task When_a_message_consumer_reads_multiple_messages() //retrieve messages var messages = _consumer.Receive(TimeSpan.FromMilliseconds(10000)); - messages.Length.Should().BeLessOrEqualTo(outstandingMessageCount); + messages.Length.Should().BeLessThanOrEqualTo(outstandingMessageCount); //should not receive more than buffer in one hit - messages.Length.Should().BeLessOrEqualTo(BufferSize); + + messages.Length.Should().BeLessThanOrEqualTo(BufferSize); var moreMessages = messages.Where(m => m.Header.MessageType == MessageType.MT_COMMAND); foreach (var message in moreMessages) diff --git a/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages_async.cs b/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages_async.cs index 3e06a5ecb..633420515 100644 --- a/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages_async.cs +++ b/tests/Paramore.Brighter.AWS.Tests/MessagingGateway/When_a_message_consumer_reads_multiple_messages_async.cs @@ -97,10 +97,10 @@ public async Task When_a_message_consumer_reads_multiple_messages_async() //retrieve messages var messages = await _consumer.ReceiveAsync(TimeSpan.FromMilliseconds(10000)); - messages.Length.Should().BeLessOrEqualTo(outstandingMessageCount); + messages.Length.Should().BeLessThanOrEqualTo(outstandingMessageCount); //should not receive more than buffer in one hit - messages.Length.Should().BeLessOrEqualTo(BufferSize); + messages.Length.Should().BeLessThanOrEqualTo(BufferSize); var moreMessages = messages.Where(m => m.Header.MessageType == MessageType.MT_COMMAND); foreach (var message in moreMessages)