Skip to content

Commit

Permalink
[mqtt] Paso Client
Browse files Browse the repository at this point in the history
- Include aQute.lib
- Added dependson in test case
- Simplified native test
  • Loading branch information
pkriens committed Feb 8, 2021
1 parent 25d8d72 commit 1b67404
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions biz.aQute.mqtt.paho.client/bnd.bnd
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@



-conditionalpackage aQute.lib*
2 changes: 2 additions & 0 deletions biz.aQute.mqtt.test/bnd.bnd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# biz.aQute.mqtt.test PROVIDER BUNDLE
#

-dependson biz.aQute.mqtt.paho.client, biz.aQute.mqtt.moquette.server

-buildpath: \
osgi.annotation, \
org.osgi.service.component.annotations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ public void test() throws Exception {
for (int times = 0; times < 3; times++) {
int X = times;
try (Launchpad lp = builder.create()) {
CountDownLatch l= new CountDownLatch(5);
CountDownLatch l= new CountDownLatch(2);
Bundle bundle = lp.getBundle("biz.aQute.osgi.jna.support.test.a").get();

for (int t = 0; t < l.getCount(); t++) {
int T = t;
Thread thread = new Thread(() -> {

for (int j=0; j<10; j++) {
for (int j=0; j<5; j++) {
try {
Thread.sleep(102);
System.out.println(X + " " + T);
Expand Down

0 comments on commit 1b67404

Please sign in to comment.