summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-03-01 15:50:43 +0100
committerJon Bratseth <bratseth@gmail.com>2022-03-01 15:50:43 +0100
commit0b59d84c3bdba4a6a4e9062de1afa6a8c0700cde (patch)
treef059bf6b7692ad5f6bfbc73d122a078ed3353c3d /document
parenta87d932820689dd4bf03432f1cbd2486ca419459 (diff)
Expect updated error message
Diffstat (limited to 'document')
-rw-r--r--document/src/test/java/com/yahoo/document/DocumentIdTestCase.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/document/src/test/java/com/yahoo/document/DocumentIdTestCase.java b/document/src/test/java/com/yahoo/document/DocumentIdTestCase.java
index 63a0f8d25ed..0d3b07fd6ee 100644
--- a/document/src/test/java/com/yahoo/document/DocumentIdTestCase.java
+++ b/document/src/test/java/com/yahoo/document/DocumentIdTestCase.java
@@ -266,8 +266,7 @@ public class DocumentIdTestCase {
new DocumentId(sb.toString());
fail("Expected an IllegalArgumentException to be thrown");
} catch (IllegalArgumentException ex) {
- assertTrue(ex.getMessage().contains("However if you have already fed a document earlier on and want to remove it, " +
- "you can do so by calling new DocumentId(IdString.createIdStringLessStrict()) that will bypass this restriction."));
+ assertEquals("Document id length 65548 is longer than max length of 65536", ex.getMessage());
}
assertEquals(65548, new DocumentId(IdString.createIdStringLessStrict(sb.toString())).toString().length());
}