mirror of https://github.com/dapr/java-sdk.git
wait for actor to be ready (#969)
Signed-off-by: MregXN <mregxn@gmail.com> Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com> Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
This commit is contained in:
parent
f65e252d0e
commit
40617f1c62
|
@ -167,6 +167,9 @@ public class ActorStateIT extends BaseIT {
|
||||||
proxyBuilder = new ActorProxyBuilder(actorType, ActorProxy.class, newActorClient());
|
proxyBuilder = new ActorProxyBuilder(actorType, ActorProxy.class, newActorClient());
|
||||||
ActorProxy newProxy = proxyBuilder.build(actorId);
|
ActorProxy newProxy = proxyBuilder.build(actorId);
|
||||||
|
|
||||||
|
// wating for actor to be activated
|
||||||
|
Thread.sleep(2000);
|
||||||
|
|
||||||
callWithRetry(() -> {
|
callWithRetry(() -> {
|
||||||
logger.debug("Invoking readMessage where data is not cached ... ");
|
logger.debug("Invoking readMessage where data is not cached ... ");
|
||||||
String result = newProxy.invokeMethod("readMessage", String.class).block();
|
String result = newProxy.invokeMethod("readMessage", String.class).block();
|
||||||
|
|
Loading…
Reference in New Issue