aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-09-23 14:14:18 +0200
committerJon Bratseth <bratseth@gmail.com>2022-09-23 14:14:18 +0200
commitd6a545edd997816f3a066cf7947a28557b0744cf (patch)
tree6e9a418c9ae2279095fb72d900e16321fd0e54b0
parent78c9bfbe44faa52006e268bd829d83b2d907dbf3 (diff)
Make list mutable
-rw-r--r--container-search/src/main/java/com/yahoo/search/searchchain/testutil/DocumentSourceSearcher.java2
-rwxr-xr-xmessagebus/src/test/java/com/yahoo/messagebus/routing/RoutingSpecTestCase.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/searchchain/testutil/DocumentSourceSearcher.java b/container-search/src/main/java/com/yahoo/search/searchchain/testutil/DocumentSourceSearcher.java
index e36157efddb..f8fdfb34ca0 100644
--- a/container-search/src/main/java/com/yahoo/search/searchchain/testutil/DocumentSourceSearcher.java
+++ b/container-search/src/main/java/com/yahoo/search/searchchain/testutil/DocumentSourceSearcher.java
@@ -23,7 +23,7 @@ import com.yahoo.search.searchchain.Execution;
*
* <p>This supports multi-phase search.</p>
*
- * <p>To avoid having to add type information for the fields, a quck hack is used to
+ * <p>To avoid having to add type information for the fields, a quick hack is used to
* support testing of attribute prefetching.
* Any field in the configured hits which has a name starting by attribute
* will be returned when attribute prefetch filling is requested.</p>
diff --git a/messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingSpecTestCase.java b/messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingSpecTestCase.java
index b38ac632a37..669e9e25bf2 100755
--- a/messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingSpecTestCase.java
+++ b/messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingSpecTestCase.java
@@ -284,6 +284,8 @@ public class RoutingSpecTestCase {
routing.verify(app, errors);
Collections.sort(errors);
+
+ expectedErrors = new ArrayList<>(expectedErrors);
Collections.sort(expectedErrors);
assertEquals(expectedErrors.toString(), errors.toString());
}