Skip to content

Commit

Permalink
RavenDB-20429 : flaky test adjustments : grant more grace time before…
Browse files Browse the repository at this point in the history
… moving node to rehab
  • Loading branch information
aviv86 committed Sep 11, 2023
1 parent 7cadf44 commit 3655f10
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/SlowTests/Sharding/Encryption/ShardedEncryption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Raven.Client.ServerWide.Operations;
using Raven.Client.ServerWide.Operations.Certificates;
using Raven.Client.ServerWide.Sharding;
using Raven.Server.Config;
using Raven.Server.Documents;
using Raven.Server.ServerWide.Context;
using Raven.Server.Utils;
Expand Down Expand Up @@ -367,7 +368,13 @@ public async Task DatabaseSecretKeyShouldBeDeletedAfterShardedDatabaseDeletion()
[RavenFact(RavenTestCategory.Encryption | RavenTestCategory.Sharding, LicenseRequired = true)]
public async Task ShouldNotRemoveSecretKeyFromNodeThatStillHasShards()
{
var (nodes, leader, certificates) = await CreateRaftClusterWithSsl(3, watcherCluster: true);
var customSettings = new Dictionary<string, string>
{
[RavenConfiguration.GetKey(x => x.Cluster.MoveToRehabGraceTime)] = "5",
[RavenConfiguration.GetKey(x => x.Cluster.StabilizationTime)] = "2"
};

var (nodes, leader, certificates) = await CreateRaftClusterWithSsl(3, watcherCluster: true, customSettings: customSettings);
Encryption.SetupEncryptedDatabaseInCluster(nodes, certificates, out var databaseName);

var options = Sharding.GetOptionsForCluster(leader, shards: 3, shardReplicationFactor: 1, orchestratorReplicationFactor: 3);
Expand Down

0 comments on commit 3655f10

Please sign in to comment.