Skip to content

Commit

Permalink
Reduce number of test threads in benchmark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Aug 19, 2015
1 parent 933cf2e commit 0bfa0e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public void registerClient(final String userId, final String userSecret, String
}

@Parameters({"userId", "userSecret"})
@Test(invocationCount = 1000, threadPoolSize = 10)
@Test(invocationCount = 1000, threadPoolSize = 5)
public void requestAccessTokenPassword1(final String userId, final String userSecret) throws Exception {
requestAccessTokenPassword(userId, userSecret, this.clientId, this.clientSecret);
}

@Parameters({"userId", "userSecret"})
@Test(invocationCount = 1000, threadPoolSize = 10, dependsOnMethods = { "requestAccessTokenPassword1" })
@Test(invocationCount = 1000, threadPoolSize = 5, dependsOnMethods = { "requestAccessTokenPassword1" })
public void requestAccessTokenPassword2(final String userId, final String userSecret) throws Exception {
requestAccessTokenPassword(userId, userSecret, this.clientId, this.clientSecret);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ public void registerClient(final String userId, final String userSecret, String


@Parameters({"userId", "userSecret"})
@Test(invocationCount = 1000, threadPoolSize = 10)
@Test(invocationCount = 1000, threadPoolSize = 5)
public void testAuthorization1(final String userId, final String userSecret) throws Exception {
testAuthorizationImpl(userId, userSecret, this.redirectUri, this.clientId);
}

@Parameters({"userId", "userSecret"})
@Test(invocationCount = 1000, threadPoolSize = 10, dependsOnMethods = {"testAuthorization1"})
@Test(invocationCount = 1000, threadPoolSize = 5, dependsOnMethods = {"testAuthorization1"})
public void testAuthorization2(final String userId, final String userSecret) throws Exception {
testAuthorizationImpl(userId, userSecret, this.redirectUri, this.clientId);
}
Expand Down

0 comments on commit 0bfa0e8

Please sign in to comment.