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(