Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmipt committed Nov 18, 2023
1 parent 74adbeb commit 271ba71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/studio/kdb/KSerialiseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ 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"));
}

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);
}
}
Expand Down

0 comments on commit 271ba71

Please sign in to comment.