Issue 172: updated stubs to have enough threads to complete execution

This commit is contained in:
Adrian Cole 2010-02-16 09:56:23 -08:00
parent 041ef28bcb
commit bb80d90755
2 changed files with 3 additions and 2 deletions

View File

@ -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);
} }
} }

View File

@ -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);
} }