changeset 534:b437529144f1 onclient

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
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Fri, 27 Aug 2021 15:10:32 +0200 (2021-08-27)
parents b75464874130
children c9d88af06d35
files tests/OnClientTester.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {