changeset 787:e349d8272a13

Revert "FailUploadLate tests: verify server didn't crash" It causes a test failure on the MonetDB release branch but the problem is in JDBC, not MonetDB itself. Needs to be reapplied and fixed before the next release of monetdb-java but can be reverted for now.
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Thu, 07 Dec 2023 09:01:37 +0100 (16 months ago)
parents f7df78989ac5
children 2f36ac68ac35 1344603ee8af
files tests/OnClientTester.java
diffstat 1 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/tests/OnClientTester.java
+++ b/tests/OnClientTester.java
@@ -725,19 +725,10 @@ public final class OnClientTester {
 		initTest("test_FailUploadLate");
 		prepare();
 		MyUploadHandler handler = new MyUploadHandler(100, 50, "i don't like line 50");
-		handler.setChunkSize(99);
 		conn.setUploadHandler(handler);
 		expectError("COPY INTO foo FROM 'banana' ON CLIENT", "i don't like");
 		assertEq("cancellation callback called", false, handler.isCancelled());
 		assertEq("connection is closed", true, conn.isClosed());
-		try {
-			Thread.sleep(1000);
-		} catch (InterruptedException e) {
-
-		}
-		outBuffer.append("RECONNECT\n");
-		assertEq("reconnect succeeded", true, openConnection());
-		assertQueryInt("SELECT COUNT(*) FROM foo", 0);
 		exitTest();
 	}
 
@@ -761,16 +752,6 @@ public final class OnClientTester {
 		expectError("COPY INTO foo(t) FROM 'banana'(t) ON CLIENT", "after all");
 		assertEq("connection is closed", true, conn.isClosed());
 		// Cannot check the server log, but at the time I checked, it said "prematurely stopped client", which is fine.
-		try {
-			Thread.sleep(1000);
-		} catch (InterruptedException e) {
-
-		}
-
-		outBuffer.append("RECONNECT\n");
-		assertEq("reconnect succeeded", true, openConnection());
-		assertQueryInt("SELECT COUNT(*) FROM foo", 0);
-
 		exitTest();
 	}