From 3655f10c1404c3be345daf97bf525ba580a18fa9 Mon Sep 17 00:00:00 2001 From: aviv Date: Mon, 11 Sep 2023 17:43:11 +0300 Subject: [PATCH] RavenDB-20429 : flaky test adjustments : grant more grace time before moving node to rehab --- test/SlowTests/Sharding/Encryption/ShardedEncryption.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/SlowTests/Sharding/Encryption/ShardedEncryption.cs b/test/SlowTests/Sharding/Encryption/ShardedEncryption.cs index e6cad3903b3b..2ed653ceb04d 100644 --- a/test/SlowTests/Sharding/Encryption/ShardedEncryption.cs +++ b/test/SlowTests/Sharding/Encryption/ShardedEncryption.cs @@ -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; @@ -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 + { + [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);