aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2023-08-31 06:43:17 +0200
committerGitHub <noreply@github.com>2023-08-31 06:43:17 +0200
commit2d3a1be956b24f3eda343bddcecea6b418f4cd7c (patch)
treeaae3c5b2bc796316729e6a777f8eaac33a464f82 /configserver/src/test
parentbbff4001ee7b1085753bba824fa4be685b466521 (diff)
parentf151fb9eb0d8a61f27227e5bebd990a9ded3b0cc (diff)
Merge pull request #28277 from vespa-engine/jonmv/trigger-redeployment-when-reindexing-ready
Trigger periodic redeployment for apps with readied reindexing
Diffstat (limited to 'configserver/src/test')
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/application/ApplicationReindexingTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/application/ApplicationReindexingTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/application/ApplicationReindexingTest.java
index 80ac28e9dbc..972bd86d752 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/application/ApplicationReindexingTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/application/ApplicationReindexingTest.java
@@ -41,6 +41,11 @@ public class ApplicationReindexingTest {
assertEquals(Optional.empty(),
reindexing.status("three", "a"));
+ assertEquals(Optional.empty(),
+ reindexing.lastReadiedAt());
+ assertEquals(Optional.of(Instant.ofEpochMilli(3)),
+ reindexing.withoutPending("two", "b").lastReadiedAt());
+
// Remove "a" in "one", and "one" entirely.
assertEquals(Optional.empty(),
reindexing.without("one", "a").status("one", "a"));