Browse files

fixed none deterministic unit test for akka. as akka executed async. …

…related to METRICS-3183
  • Loading branch information...
1 parent b58e39d commit 23676b4510a8e459d4832cabcd896c308a07062a @eliranbivas eliranbivas committed Dec 17, 2012
View
2 ...om/springsource/insight/plugin/akka/AbstractAkkaOperationCollectionAspectTestSupport.java
@@ -69,7 +69,7 @@ protected String getActorRefPath() {
@Override
public void onReceive(Object o) throws Exception {
- // getSender().tell(o, getSelf());
+ // do nothing
}
}
View
4 .../java/com/springsource/insight/plugin/akka/UntypedActorOperationCollectionAspectTest.java
@@ -31,10 +31,12 @@ public UntypedActorOperationCollectionAspectTest() {
}
@Test
- public void testCreateOperation() {
+ public void testCreateOperation() throws Exception {
ActorRef ref = createActorRef();
ref.tell(getClass());
+ Thread.sleep(1000);
+
Operation operation = getLastEntered();
Operation expected = new Operation().type(AkkaDefinitions.OperationTypes.AKKA_OP_UNTYPED_ACTOR)
.put(AkkaDefinitions.Labels.MESSAGE, Class.class.getName())

0 comments on commit 23676b4

Please sign in to comment.