cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject [23/51] [abbrv] git commit: updated refs/heads/object_store to 9aec9c6
Date Thu, 20 Jun 2013 01:17:44 GMT
add some logging to NioTest

Signed-off-by: Prasanna Santhanam <tsp@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/168fb29d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/168fb29d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/168fb29d

Branch: refs/heads/object_store
Commit: 168fb29d69da3a1bf03498f5070ff656d01cd4c7
Parents: c8bc7a0
Author: Prasanna Santhanam <tsp@apache.org>
Authored: Tue Jun 18 16:32:31 2013 +0530
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Wed Jun 19 09:28:16 2013 +0530

----------------------------------------------------------------------
 utils/test/com/cloud/utils/testcase/NioTest.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/168fb29d/utils/test/com/cloud/utils/testcase/NioTest.java
----------------------------------------------------------------------
diff --git a/utils/test/com/cloud/utils/testcase/NioTest.java b/utils/test/com/cloud/utils/testcase/NioTest.java
index e20532c..3b8fe69 100644
--- a/utils/test/com/cloud/utils/testcase/NioTest.java
+++ b/utils/test/com/cloud/utils/testcase/NioTest.java
@@ -16,20 +16,18 @@
 // under the License.
 package com.cloud.utils.testcase;
 
-import java.nio.channels.ClosedChannelException;
-import java.util.Random;
-
-import org.apache.log4j.Logger;
-
 import com.cloud.utils.nio.HandlerFactory;
 import com.cloud.utils.nio.Link;
 import com.cloud.utils.nio.NioClient;
 import com.cloud.utils.nio.NioServer;
 import com.cloud.utils.nio.Task;
 import com.cloud.utils.nio.Task.Type;
-
-import org.junit.Assert;
 import junit.framework.TestCase;
+import org.apache.log4j.Logger;
+import org.junit.Assert;
+
+import java.nio.channels.ClosedChannelException;
+import java.util.Random;
 
 /**
  * 
@@ -83,6 +81,7 @@ public class NioTest extends TestCase {
         
         while (_clientLink == null) {
             try {
+                s_logger.debug("Link is not up! Waiting ...");
                 Thread.sleep(1000);
             } catch (InterruptedException e) {
                 // TODO Auto-generated catch block
@@ -94,6 +93,7 @@ public class NioTest extends TestCase {
     public void tearDown() {
         while (!isTestsDone()) {
             try {
+                s_logger.debug(this._completedCount + "/" + this._testCount + " tests done.
Waiting for completion");
                 Thread.sleep(1000);
             } catch (InterruptedException e) {
                 // TODO Auto-generated catch block


Mime
View raw message