Skip to content

Commit cedc57a

Browse files
[Backport 7.6] Wait for .security index to be green (#4439)
Co-authored-by: Russ Cam <russ.cam@elastic.co>
1 parent 24350f8 commit cedc57a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build/scripts/Testing.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module Tests =
5353
let commandWithAdditionalOptions =
5454
wantsCoverage |> List.append wantsTrx |> List.append command
5555

56-
Tooling.DotNet.ExecInWithTimeout "." commandWithAdditionalOptions (TimeSpan.FromMinutes 30.)
56+
Tooling.DotNet.ExecInWithTimeout "." commandWithAdditionalOptions (TimeSpan.FromMinutes 60.)
5757

5858
let RunReleaseUnitTests version args =
5959
//xUnit always does its own build, this env var is picked up by Tests.csproj

tests/Tests.Core/ManagedElasticsearch/Clusters/XPackCluster.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ protected virtual ConnectionSettings ConnectionSettings(ConnectionSettings s) =>
5050
protected sealed override void SeedCluster()
5151
{
5252
Client.Cluster.Health(new ClusterHealthRequest { WaitForStatus = WaitForStatus.Green });
53+
Client.Cluster.Health(new ClusterHealthRequest(".security-7") { WaitForStatus = WaitForStatus.Green });
5354
SeedNode();
5455
Client.Cluster.Health(new ClusterHealthRequest { WaitForStatus = WaitForStatus.Green });
56+
Client.Cluster.Health(new ClusterHealthRequest(".security-7") { WaitForStatus = WaitForStatus.Green });
5557
}
5658

5759
protected virtual void SeedNode() => new DefaultSeeder(Client).SeedNode();

0 commit comments

Comments
 (0)