Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Yashash H L <[email protected]>
  • Loading branch information
yhl25 committed Oct 8, 2024
1 parent 40ec7d3 commit cf96b60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/io/numaproj/numaflow/mapper/ServerErrTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public class ServerErrTest {

Expand Down Expand Up @@ -125,6 +126,7 @@ public void testMapperFailure() {

try {
responseObserver.done.get();
fail("Expected exception not thrown");
} catch (Exception e) {
assertEquals(
"io.grpc.StatusRuntimeException: UNKNOWN: unknown exception",
Expand Down
1 change: 1 addition & 0 deletions src/test/java/io/numaproj/numaflow/mapper/ServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public void testMapperWithoutHandshake() {

try {
responseObserver.done.get();
fail("Expected an exception to be thrown");
} catch (InterruptedException | ExecutionException e) {
assertEquals(
"io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Handshake request not received",
Expand Down

0 comments on commit cf96b60

Please sign in to comment.