From 271ba71c665a0a592f07361a7de910c09f9e45d1 Mon Sep 17 00:00:00 2001 From: dzmipt Date: Sat, 18 Nov 2023 22:02:57 +0100 Subject: [PATCH] fix tests --- test/studio/kdb/KSerialiseTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/studio/kdb/KSerialiseTest.java b/test/studio/kdb/KSerialiseTest.java index 2820e3fe..36c6517a 100644 --- a/test/studio/kdb/KSerialiseTest.java +++ b/test/studio/kdb/KSerialiseTest.java @@ -20,13 +20,13 @@ public class KSerialiseTest { private static KConnection kConn; @BeforeAll - public static void connect() throws K4Exception, IOException { + public static void connect() throws K4Exception, IOException, InterruptedException { kConn = new KConnection("localhost", Integer.parseInt(System.getenv("qTestPort")), "", false); kConn.k(new K.KCharacterVector(".z.pg:{$[x~\"reset\";`.z.pg set value;x]}")); } @AfterAll - public static void exit() throws K4Exception, IOException { + public static void exit() throws K4Exception, IOException, InterruptedException { kConn.k(new K.KCharacterVector("reset")); } @@ -34,7 +34,7 @@ private void test(K.KBase k) { try { K.KBase result = kConn.k(k); assertEquals(k, result); - } catch (K4Exception |IOException e) { + } catch (K4Exception | IOException | InterruptedException e) { fail(e); } }