tuned performance tests

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2014 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-10-31 00:47:16 +00:00
parent 6336fa1823
commit 16e3526430
2 changed files with 5 additions and 2 deletions

View File

@ -83,7 +83,7 @@ public abstract class BaseJCloudsPerformanceLiveTest extends BasePerformanceLive
S3Object object = newObject(key); S3Object object = newObject(key);
object.getMetadata().setContentType(contentType); object.getMetadata().setContentType(contentType);
object.setData(data); object.setData(data);
object.getMetadata().setSize(new Long(data.available())); object.setContentLength(new Long(data.available()));
return context.getApi().putObject(bucket, object).get(120, TimeUnit.SECONDS) != null; return context.getApi().putObject(bucket, object).get(120, TimeUnit.SECONDS) != null;
} }

View File

@ -52,7 +52,10 @@ import org.testng.annotations.Test;
* @author Adrian Cole * @author Adrian Cole
*/ */
public abstract class BasePerformanceLiveTest extends BaseBlobStoreIntegrationTest<S3Client> { public abstract class BasePerformanceLiveTest extends BaseBlobStoreIntegrationTest<S3Client> {
protected int timeoutSeconds = 10; static {
containerCount = 1;
}
protected int timeoutSeconds = 15;
protected int loopCount = 100; protected int loopCount = 100;
protected ExecutorService exec; protected ExecutorService exec;
protected CompletionService<Boolean> completer; protected CompletionService<Boolean> completer;