From f2832a845fd3440e4ae5f8f83454f11533536f9a Mon Sep 17 00:00:00 2001 From: Ludovic Orban Date: Wed, 23 Aug 2023 15:21:50 +0200 Subject: [PATCH] #10226 - improve testDownloadWithCloseMiddleOfContent debuggability by helping to discriminate the buffers by their content Signed-off-by: Ludovic Orban --- .../jetty/test/client/transport/HttpClientStreamTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/HttpClientStreamTest.java b/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/HttpClientStreamTest.java index b8cd557808fa..43cc6e8a79fa 100644 --- a/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/HttpClientStreamTest.java +++ b/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/HttpClientStreamTest.java @@ -541,7 +541,9 @@ public boolean handle(Request request, org.eclipse.jetty.server.Response respons public void testDownloadWithCloseMiddleOfContent(Transport transport) throws Exception { byte[] data1 = new byte[1024]; + Arrays.fill(data1, (byte)1); byte[] data2 = new byte[1024]; + Arrays.fill(data2, (byte)2); CountDownLatch latch = new CountDownLatch(1); start(transport, new Handler.Abstract() {