changeset 851:157dcb2d6516 monetdbs

relax wording of expected exception
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Fri, 05 Jan 2024 11:56:03 +0100 (15 months ago)
parents 9f200daffa35
children d9a45743536d
files tests/TLSTester.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/TLSTester.java
+++ b/tests/TLSTester.java
@@ -201,7 +201,7 @@ public class TLSTester {
 	}
 
 	private void test_fail_plain_to_tls() throws IOException, SQLException {
-		attempt("fail_plain_to_tls", "server1").with(Parameter.TLS, false).expectFailure("Cannot connect");
+		attempt("fail_plain_to_tls", "server1").with(Parameter.TLS, false).expectFailure("Cannot connect", "Could not connect");
 	}
 
 	private void test_connect_server_name() throws IOException, SQLException {
@@ -305,7 +305,7 @@ public class TLSTester {
 					if (e.getMessage().contains(expected))
 						return;
 				String message = "Test " + testName + " threw the wrong exception: " + e.getMessage() + '\n' + "Expected:\n        <" + String.join(">\n        <", expectedMessages) + ">";
-				throw new RuntimeException(message);
+				throw new RuntimeException(message, e);
 
 			}
 		}