Skip to content

Commit

Permalink
Changed timing tests (too unreliable)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bock, Jason authored and Bock, Jason committed Feb 3, 2025
1 parent a0a94b9 commit 2bdf0d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RockLib.Messaging.NamedPipes/NamedPipeReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void StartNewPipeServer()
#pragma warning restore CA1416 // Validate platform compatibility
_pipeServer.BeginWaitForConnection(WaitForConnectionCallBack, null);
}

private void WaitForConnectionCallBack(IAsyncResult result)
{
// We can assume _pipeServer will always be non-null here.
Expand Down
4 changes: 2 additions & 2 deletions Tests/RockLib.Messaging.Tests/MessagingExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void AddSenderExtensionMethod1HappyPath()

var serviceProvider = services.BuildServiceProvider();

serviceProvider.ExecutionTimeOf(s => s.GetRequiredService<ISender>()).Should().BeLessOrEqualTo(250.Milliseconds());
serviceProvider.GetRequiredService<ISender>().Should().NotBeNull();
}

[Fact]
Expand All @@ -44,7 +44,7 @@ public void AddReceiverExtensionMethod1HappyPath()

var serviceProvider = services.BuildServiceProvider();

serviceProvider.ExecutionTimeOf(s => s.GetRequiredService<IReceiver>()).Should().BeLessOrEqualTo(250.Milliseconds());
serviceProvider.GetRequiredService<IReceiver>().Should().NotBeNull();
}

#pragma warning disable CA1034 // Nested types should not be visible
Expand Down

0 comments on commit 2bdf0d7

Please sign in to comment.