Skip to content

Commit 9734a79

Browse files
committed
ClusterStatsTests.testValuesSmokeScreen: replace greaterThan with greaterOrEqualThan
1 parent 72ccf3b commit 9734a79

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/org/elasticsearch/action/admin/cluster/stats/ClusterStatsTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ public void testValuesSmokeScreen() {
140140
// 0 happens when not supported on platform
141141
assertThat(response.nodesStats.getProcess().getAvgOpenFileDescriptors(), Matchers.greaterThanOrEqualTo(0L));
142142
// these can be -1 if not supported on platform
143-
assertThat(response.nodesStats.getProcess().getMinOpenFileDescriptors(), Matchers.greaterThan(-1L));
144-
assertThat(response.nodesStats.getProcess().getMaxOpenFileDescriptors(), Matchers.greaterThan(-1L));
145-
143+
assertThat(response.nodesStats.getProcess().getMinOpenFileDescriptors(), Matchers.greaterThanOrEqualTo(-1L));
144+
assertThat(response.nodesStats.getProcess().getMaxOpenFileDescriptors(), Matchers.greaterThanOrEqualTo(-1L));
146145
}
147146
}

0 commit comments

Comments
 (0)