Skip to content

Commit 82c4335

Browse files
committed
Fixed plugable queue balancer test failures.
- Was not setting the blancer type.
1 parent 83fff96 commit 82c4335

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

test/Tester/StreamingTests/PlugableQueueBalancerTests/PluggableQueueBalancerTestBase.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ public class PluggableQueueBalancerTestBase : OrleansTestingBase
1313
{
1414
private static Type QueueBalancerType = typeof(LeaseBasedQueueBalancerForTest);
1515

16-
public static PersistentStreamOptions ConfigWithCustomBalancerType(PersistentStreamOptions options)
17-
{
18-
options.BalancerType = QueueBalancerType;
19-
return options;
20-
}
21-
2216
public virtual async Task ShouldUseInjectedQueueBalancerAndBalanceCorrectly(BaseTestClusterFixture fixture, string streamProviderName, int siloCount, int totalQueueCount)
2317
{
2418
var leaseManager = fixture.GrainFactory.GetGrain<ILeaseManagerGrain>(streamProviderName);

test/Tester/StreamingTests/PlugableQueueBalancerTests/PluggableQueueBalancerTestsWithMemoryStreamProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public void Configure(ISiloHostBuilder hostBuilder)
4141
.AddMemoryStreams<DefaultMemoryMessageBodySerializer>(StreamProviderName, options =>
4242
{
4343
options.TotalQueueCount = totalQueueCount;
44+
options.BalancerType = typeof(LeaseBasedQueueBalancerForTest);
4445
});
4546
}
4647
}

0 commit comments

Comments
 (0)