Skip to content

Commit 55b1425

Browse files
committed
NodeStats still has assertions that need version range safeguard
1 parent a269940 commit 55b1425

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tests/Tests/Cluster/NodesStats/NodesStatsApiTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ protected void Assert(NodeIngestStats nodeIngestStats)
7474
{
7575
nodeIngestStats.Should().NotBeNull();
7676
nodeIngestStats.Total.Should().NotBeNull();
77-
nodeIngestStats.Pipelines.Should().NotBeNull();
78-
nodeIngestStats.Pipelines.Should().ContainKey(DefaultSeeder.PipelineName);
7977

8078
if (TestClient.Configuration.InRange("<6.5.0")) return;
8179

80+
nodeIngestStats.Pipelines.Should().NotBeNull();
81+
nodeIngestStats.Pipelines.Should().ContainKey(DefaultSeeder.PipelineName);
82+
8283
var pipelineStats = nodeIngestStats.Pipelines[DefaultSeeder.PipelineName];
8384

8485
pipelineStats.Should().NotBeNull();

0 commit comments

Comments
 (0)