mirror of https://github.com/apache/jclouds.git
Issue 172: updated stubs to have enough threads to complete execution
This commit is contained in:
parent
041ef28bcb
commit
bb80d90755
|
@ -40,7 +40,7 @@ public class StubBlobStoreModule extends AbstractModule {
|
||||||
bind(new TypeLiteral<ConcurrentMap<String, ConcurrentMap<String, Blob>>>() {
|
bind(new TypeLiteral<ConcurrentMap<String, ConcurrentMap<String, Blob>>>() {
|
||||||
}).toInstance(map);
|
}).toInstance(map);
|
||||||
bind(StubAsyncBlobStore.class).in(Scopes.SINGLETON);
|
bind(StubAsyncBlobStore.class).in(Scopes.SINGLETON);
|
||||||
bindConstant().annotatedWith(Jsr330.named(Constants.PROPERTY_USER_THREADS)).to(5);
|
bindConstant().annotatedWith(Jsr330.named(Constants.PROPERTY_USER_THREADS)).to(0);
|
||||||
bindConstant().annotatedWith(Jsr330.named(Constants.PROPERTY_IO_WORKER_THREADS)).to(5);
|
bindConstant().annotatedWith(Jsr330.named(Constants.PROPERTY_IO_WORKER_THREADS)).to(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -86,6 +86,7 @@ public class BaseBlobStoreIntegrationTest {
|
||||||
*/
|
*/
|
||||||
@BeforeSuite
|
@BeforeSuite
|
||||||
public void setUpResourcesForAllThreads(ITestContext testContext) throws Exception {
|
public void setUpResourcesForAllThreads(ITestContext testContext) throws Exception {
|
||||||
|
// TODO: close this context
|
||||||
createContainersSharedByAllThreads(getCloudResources(testContext), testContext);
|
createContainersSharedByAllThreads(getCloudResources(testContext), testContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue