diff options
author | Harald Musum <musum@verizonmedia.com> | 2023-08-31 06:43:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 06:43:17 +0200 |
commit | 2d3a1be956b24f3eda343bddcecea6b418f4cd7c (patch) | |
tree | aae3c5b2bc796316729e6a777f8eaac33a464f82 /configserver/src/test | |
parent | bbff4001ee7b1085753bba824fa4be685b466521 (diff) | |
parent | f151fb9eb0d8a61f27227e5bebd990a9ded3b0cc (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.java | 5 |
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")); |