Skip to content

Commit 37f3ed8

Browse files
author
Joerg Huber
committed
Tested shutdown of ConsumerLoader.
1 parent 6536bb3 commit 37f3ed8

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

SIF3InfraREST/SIF3Demo/sif3-demo-web/src/test/java/sif3/test/infra/rest/consumer/TestConsumerLoader.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
public class TestConsumerLoader
2929
{
3030
// Local
31-
// private static final String CONSUMER_ID = "StudentConsumer";
31+
private static final String CONSUMER_ID = "StudentConsumer";
3232
// private static final String CONSUMER_ID = "RicOneConsumer";
3333

3434
// Broker
35-
private static final String CONSUMER_ID = "BrokeredAttTrackerConsumer";
35+
// private static final String CONSUMER_ID = "BrokeredAttTrackerConsumer";
3636
// private static final String CONSUMER_ID = "QueueTestConsumer";
3737

3838

@@ -91,7 +91,7 @@ public static void main(String[] args)
9191
}
9292

9393
// Put this agent to a blocking wait.....
94-
long waitTime = 23; // seconds
94+
long waitTime = 20; // seconds
9595
tester.doWait(waitTime);
9696

9797
// try
@@ -111,10 +111,7 @@ public static void main(String[] args)
111111

112112
ConsumerLoader.shutdown();
113113

114-
// Wait some time to ensure all remaining threads are shut down...
115-
tester.doWait(10);
116-
117114
System.out.println("End Testing TestConsumerLoader.");
118-
System.exit(0);
115+
// System.exit(0);
119116
}
120117
}

0 commit comments

Comments
 (0)