Use FAIL rate-limit handler for tests

Should avoid possible Thread.sleep() for tests execution.
This commit is contained in:
Kanstantsin Shautsou
2015-03-23 21:14:42 +03:00
parent f1f96713a4
commit 9ebc9c0867

View File

@@ -19,9 +19,9 @@ public abstract class AbstractGitHubApiTestBase extends Assert {
if (f.exists()) {
// use the non-standard credential preferentially, so that developers of this library do not have
// to clutter their event stream.
gitHub = GitHubBuilder.fromPropertyFile(f.getPath()).build();
gitHub = GitHubBuilder.fromPropertyFile(f.getPath()).withRateLimitHandler(RateLimitHandler.FAIL).build();
} else {
gitHub = GitHub.connect();
gitHub = GitHubBuilder.fromCredentials().withRateLimitHandler(RateLimitHandler.FAIL).build();
}
}