Skip to content

Commit

Permalink
feat(#3251): restart
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Sep 23, 2024
1 parent 1c8b69c commit 4dbb9da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOsys/EOposixTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,6 @@ void connectsViaSocketObject() {
final Phi connected = sock.take("connect").copy();
connected.put(0, new EOposixTest.Scope());
final byte[] result = new Dataized(connected).take();
MatcherAssert.assertThat(
String.format(
"Posix socket should have connected successfully to local server, but it didn't, message is: '%s'",
new String(result, StandardCharsets.UTF_8)
),
result,
Matchers.equalTo(new byte[] {0x01})
);
if (!Arrays.equals(result, new byte[]{0x01})) {
Logger.info(
this,
Expand All @@ -159,6 +151,14 @@ void connectsViaSocketObject() {
)
);
}
MatcherAssert.assertThat(
String.format(
"Posix socket should have connected successfully to local server, but it didn't, message is: '%s'",
new String(result, StandardCharsets.UTF_8)
),
result,
Matchers.equalTo(new byte[] {0x01})
);
}

/**
Expand Down

0 comments on commit 4dbb9da

Please sign in to comment.