Skip to content

Commit f5c1364

Browse files
committed
Fix happy path for waiting for sidecar test.
Signed-off-by: Artur Souza <[email protected]>
1 parent 1f4bcf5 commit f5c1364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/src/test/java/io/dapr/client/DaprClientGrpcTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public void waitForSidecarTimeout() {
123123

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

130130
@Test

0 commit comments

Comments
 (0)