Repository: jclouds
Updated Branches:
  refs/heads/master 322ea1cbb -> 9677ed18e


Remove loop to gather metrics

This loop dramatically increases integration test run-time for no
discernible benefit.


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/9677ed18
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/9677ed18
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/9677ed18

Branch: refs/heads/master
Commit: 9677ed18eb100a423c48608d424465d881d93aa5
Parents: 322ea1c
Author: Andrew Gaul <[email protected]>
Authored: Thu Jul 24 15:59:26 2014 -0700
Committer: Andrew Gaul <[email protected]>
Committed: Sat Jul 26 11:08:16 2014 -0700

----------------------------------------------------------------------
 .../java/org/jclouds/atmos/AtmosClientLiveTest.java | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/9677ed18/apis/atmos/src/test/java/org/jclouds/atmos/AtmosClientLiveTest.java
----------------------------------------------------------------------
diff --git 
a/apis/atmos/src/test/java/org/jclouds/atmos/AtmosClientLiveTest.java 
b/apis/atmos/src/test/java/org/jclouds/atmos/AtmosClientLiveTest.java
index 0cf4d6c..9f57ddb 100644
--- a/apis/atmos/src/test/java/org/jclouds/atmos/AtmosClientLiveTest.java
+++ b/apis/atmos/src/test/java/org/jclouds/atmos/AtmosClientLiveTest.java
@@ -178,18 +178,14 @@ public class AtmosClientLiveTest extends 
BaseBlobStoreIntegrationTest {
       createOrReplaceObject("object", data2, Hashing.md5().hashString(data2, 
UTF_8), "meta-value?");
       assertEventuallyObjectMatches("object", "here is my data?", 
"meta-value?");
 
-      // loop to gather metrics
       for (boolean stream : new boolean[] { true, false }) {
-         for (int i = 0; i < 10; i++) {
-            System.err.printf("upload/delete/create attempt %d type %s%n", i + 
1, stream ? "stream" : "string");
-            // try updating
-            createOrUpdateWithErrorLoop(stream, "there is my data", "2");
+         System.err.printf("upload/delete/create type %s%n", stream ? "stream" 
: "string");
+         // try updating
+         createOrUpdateWithErrorLoop(stream, "there is my data", "2");
 
-            deleteConfirmed(privateDirectory + "/object");
-            // now create
-            createOrUpdateWithErrorLoop(stream, "where is my data", "3");
-
-         }
+         deleteConfirmed(privateDirectory + "/object");
+         // now create
+         createOrUpdateWithErrorLoop(stream, "where is my data", "3");
       }
    }
 

Reply via email to