Skip to content

Commit

Permalink
Fix happy path for waiting for sidecar test.
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
  • Loading branch information
artursouza committed Jun 15, 2023
1 parent 1f4bcf5 commit f5c1364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/test/java/io/dapr/client/DaprClientGrpcTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public void waitForSidecarTimeout() {

@Test
public void waitForSidecarOK() {
Mockito.doReturn(Mono.error(new RuntimeException())).when(channel).waitForChannelReady(10000);
assertThrows(RuntimeException.class, () -> client.waitForSidecar(10000).block());
Mockito.doReturn(Mono.empty()).when(channel).waitForChannelReady(10000);
client.waitForSidecar(10000).block();
}

@Test
Expand Down

0 comments on commit f5c1364

Please sign in to comment.