From d2b19216100659ff463f29238e98690e96248a05 Mon Sep 17 00:00:00 2001 From: Ian Cooper Date: Wed, 15 Jan 2025 10:19:31 +0000 Subject: [PATCH] chore: fix changes to fluent assertions interface --- .../When_a_message_consumer_reads_multiple_messages.cs | 5 +++-- .../When_a_message_consumer_reads_multiple_messages_async.cs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 26ffbd852d..c3382b242a 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 3e06a5ecbe..633420515f 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)