# HG changeset patch # User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> # Date 1669042789 -3600 # Node ID 3442d331cad090187610388ccbd726102151be20 # Parent 2233b172e06d0e0345fe88b94dee5ec7be4510f2 In test_ServerStopsReading, wait longer for the server to cancel the upload Some recent server versions perform more readahead in COPY INTO. This means that a query such as COPY 10 RECORDS INTO foo FROM 'some-file' ON CLIENT will upload much more data before the server finally decides it can cancel the rest of the upload. When testing the cancellation behavior we need to take this into account. diff --git a/tests/OnClientTester.java b/tests/OnClientTester.java --- a/tests/OnClientTester.java +++ b/tests/OnClientTester.java @@ -538,7 +538,8 @@ public final class OnClientTester { private void test_ServerStopsReading() throws SQLException, Failure { initTest("test_ServerStopsReading"); prepare(); - MyUploadHandler handler = new MyUploadHandler(100); + long n = 2 * 1024 * 1024 / 10; + MyUploadHandler handler = new MyUploadHandler(n); conn.setUploadHandler(handler); update("COPY 10 RECORDS INTO foo FROM 'banana' ON CLIENT"); assertEq("cancellation callback called", true, handler.isCancelled());