Skip to content

Commit 168fb29

Browse files
author
Prasanna Santhanam
committed
add some logging to NioTest
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent c8bc7a0 commit 168fb29

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

utils/test/com/cloud/utils/testcase/NioTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@
1616
// under the License.
1717
package com.cloud.utils.testcase;
1818

19-
import java.nio.channels.ClosedChannelException;
20-
import java.util.Random;
21-
22-
import org.apache.log4j.Logger;
23-
2419
import com.cloud.utils.nio.HandlerFactory;
2520
import com.cloud.utils.nio.Link;
2621
import com.cloud.utils.nio.NioClient;
2722
import com.cloud.utils.nio.NioServer;
2823
import com.cloud.utils.nio.Task;
2924
import com.cloud.utils.nio.Task.Type;
30-
31-
import org.junit.Assert;
3225
import junit.framework.TestCase;
26+
import org.apache.log4j.Logger;
27+
import org.junit.Assert;
28+
29+
import java.nio.channels.ClosedChannelException;
30+
import java.util.Random;
3331

3432
/**
3533
*
@@ -83,6 +81,7 @@ public void setUp() {
8381

8482
while (_clientLink == null) {
8583
try {
84+
s_logger.debug("Link is not up! Waiting ...");
8685
Thread.sleep(1000);
8786
} catch (InterruptedException e) {
8887
// TODO Auto-generated catch block
@@ -94,6 +93,7 @@ public void setUp() {
9493
public void tearDown() {
9594
while (!isTestsDone()) {
9695
try {
96+
s_logger.debug(this._completedCount + "/" + this._testCount + " tests done. Waiting for completion");
9797
Thread.sleep(1000);
9898
} catch (InterruptedException e) {
9999
// TODO Auto-generated catch block

0 commit comments

Comments
 (0)