aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/vespa/model/container
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2023-06-10 10:07:32 +0200
committerHarald Musum <musum@yahooinc.com>2023-06-10 10:07:32 +0200
commit7f13594d6595b81a291018f902c438d3aaea057b (patch)
tree9b7d5fc7c0dc27469795cebcbe45a16592450573 /config-model/src/test/java/com/yahoo/vespa/model/container
parent3d16727641d36fcdad5d5850735c61bd82faa10a (diff)
Make error message deterministic by sorting rule names
Diffstat (limited to 'config-model/src/test/java/com/yahoo/vespa/model/container')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java b/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java
index f0e28f9df09..e20e14f9465 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java
@@ -60,7 +60,7 @@ public class SemanticRulesTest {
new SemanticRuleBuilder().build(FilesApplicationPackage.fromFile(new File(rootWithDuplicateDefault)));
fail("should fail with exception");
} catch (Exception e) {
- assertEquals("Both 'one' and 'other' is marked as default rule, there can only be one", e.getMessage());
+ assertEquals("Rules [one, other] are both marked as the default rule, there can only be one", e.getMessage());
}
}