# HG changeset patch # User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> # Date 1630069832 -7200 # Node ID b437529144f121a5242e9aa95a725b2ca4690251 # Parent b754648741309c5b7c5968798ea24be2188c4433 Learn to live with server closing connection if client refuses Wish it were different but for the time being, modify the test to expect this diff --git a/tests/OnClientTester.java b/tests/OnClientTester.java --- a/tests/OnClientTester.java +++ b/tests/OnClientTester.java @@ -126,7 +126,8 @@ public final class OnClientTester extend conn.setDownloadHandler(handler); update("INSERT INTO foo SELECT value as i, 'number' || value AS t FROM sys.generate_series(0, 100)", 100); expectError("COPY (SELECT * FROM foo) INTO 'banana' ON CLIENT", "download refused"); - queryInt("SELECT 42 -- check if the connection still works", 42); + // Wish it were different but the server closes the connection + expectError("SELECT 42 -- check if the connection still works", "Connection to server lost!"); } public void test_LargeUpload() throws SQLException, Failure {