Skip to content

Commit 06ba5c3

Browse files
codebrainrusscam
authored andcommitted
Ignore TimingStats object if version < 7.4.0 (#4176)
(cherry picked from commit 6339c82)
1 parent f469281 commit 06ba5c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Tests/Tests/XPack/MachineLearning/GetDatafeedStats/GetDatafeedStatsApiTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ protected override void ExpectResponse(GetDatafeedStatsResponse response)
4242
response.Count.Should().BeGreaterOrEqualTo(1);
4343
var datafeedStats = response.Datafeeds.First();
4444
datafeedStats.State.Should().Be(DatafeedState.Stopped);
45-
datafeedStats.TimingStats.Should().NotBeNull();
45+
46+
if (Cluster.ClusterConfiguration.Version >= "7.4.0")
47+
{
48+
datafeedStats.TimingStats.Should().NotBeNull();
49+
}
4650
}
4751
}
4852

0 commit comments

Comments
 (0)