aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStatsChangeTrackerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStatsChangeTrackerTest.java')
-rw-r--r--clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStatsChangeTrackerTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStatsChangeTrackerTest.java b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStatsChangeTrackerTest.java
index c3dcf1e1cfc..4e5de68756d 100644
--- a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStatsChangeTrackerTest.java
+++ b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStatsChangeTrackerTest.java
@@ -77,14 +77,14 @@ public class ClusterStatsChangeTrackerTest {
}
@Test
- public void stats_have_not_changed_if_all_nodes_in_sync_and_nothing_previous() {
- Fixture f = Fixture.fromStats(stats().inSync(0).inSync(1));
- assertFalse(f.statsHaveChanged());
+ public void stats_have_changed_if_in_sync_node_not_found_in_previous_stats() {
+ Fixture f = Fixture.fromStats(stats().inSync(0));
+ assertTrue(f.statsHaveChanged());
}
@Test
- public void stats_have_changed_if_one_node_with_buckets_pending_and_nothing_previous() {
- Fixture f = Fixture.fromStats(stats().inSync(0).bucketsPending(1));
+ public void stats_have_changed_if_buckets_pending_node_not_found_in_previous_stats() {
+ Fixture f = Fixture.fromStats(stats().bucketsPending(0));
assertTrue(f.statsHaveChanged());
}