Skip to content

Commit

Permalink
Fix flaky LocalhostClusterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed Feb 10, 2025
1 parent e0706d1 commit 0394cec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Tester/LocalhostSiloTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,19 @@ public async Task LocalhostClusterTest()
siloBuilder
.AddMemoryGrainStorage("MemoryStore")
.UseLocalhostClustering(baseSiloPort, baseGatewayPort);
#pragma warning disable ORLEANSEXP003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
siloBuilder.AddDistributedGrainDirectory();
#pragma warning restore ORLEANSEXP003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
}).Build();

var silo2 = new HostBuilder().UseOrleans((ctx, siloBuilder) =>
{
siloBuilder
.AddMemoryGrainStorage("MemoryStore")
.UseLocalhostClustering(baseSiloPort + 1, baseGatewayPort + 1, new IPEndPoint(IPAddress.Loopback, baseSiloPort));
#pragma warning disable ORLEANSEXP003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
siloBuilder.AddDistributedGrainDirectory();
#pragma warning restore ORLEANSEXP003 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
}).Build();

var clientHost = new HostBuilder().UseOrleansClient((ctx, clientBuilder) =>
Expand Down

0 comments on commit 0394cec

Please sign in to comment.