aboutsummaryrefslogtreecommitdiff
path: root/tests/AsyncAPI.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/AsyncAPI.java')
-rw-r--r--tests/AsyncAPI.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/AsyncAPI.java b/tests/AsyncAPI.java
index e174929..1f07565 100644
--- a/tests/AsyncAPI.java
+++ b/tests/AsyncAPI.java
@@ -43,8 +43,7 @@ class AsyncAPI {
public AsyncAPI(int nb,String domain,int d, boolean v,boolean async) throws IvyException {
verbose=v;
nbpacket=nb;
- name = "MSreceive";
- bus = new Ivy(name,null, null);
+ bus = new Ivy(RECEIVENAME,null, null);
wait = d;
delay=new DelayAnswer();
if (async) re = bus.bindAsyncMsg(TOSUBSCRIBE,delay,BindType.ASYNC);
@@ -59,7 +58,7 @@ class AsyncAPI {
static Object truc = new Object();
- int count=0,total=0;
+ volatile int count=0,total=0;
int status = 0;
synchronized void huh(IvyClient ic, String[] args) {
@@ -95,7 +94,7 @@ class AsyncAPI {
Thread.sleep(wait);
System.out.println("RECEIVE Finished Sleeping");
} catch (InterruptedException ie) {
- ie.printStackTrace();
+ System.out.println("RECEIVE Sleeping interrupted, not a problem");
}
}
}