From 568a086f14342e3f85681fb58db1df39a328146a Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Fri, 16 Oct 2020 12:48:02 -0700 Subject: [PATCH] Fix flaky tests (#16042) --- .../tests/Diagnostics/EventSourceTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceTests.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceTests.cs index b71d333be6952..85d7e6e4d2918 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceTests.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceTests.cs @@ -195,7 +195,7 @@ public async Task ScheduleMessageLogsEvents() log => log.ScheduleMessagesStart( sender.Identifier, 1, - scheduleTime.ToString(CultureInfo.InvariantCulture)), + It.IsAny()), Times.Once); mockLogger .Verify( @@ -236,7 +236,7 @@ public void ScheduleMessageExceptionLogsEvents() log => log.ScheduleMessagesStart( sender.Identifier, 1, - scheduleTime.ToString(CultureInfo.InvariantCulture)), + It.IsAny()), Times.Once); mockLogger .Verify(