From d6a545edd997816f3a066cf7947a28557b0744cf Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Fri, 23 Sep 2022 14:14:18 +0200 Subject: Make list mutable --- .../com/yahoo/search/searchchain/testutil/DocumentSourceSearcher.java | 2 +- .../src/test/java/com/yahoo/messagebus/routing/RoutingSpecTestCase.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; * *

This supports multi-phase search.

* - *

To avoid having to add type information for the fields, a quck hack is used to + *

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.

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()); } -- cgit v1.2.3