Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Sleeper interface #205

Closed
wonderfly opened this issue Jan 9, 2015 · 3 comments
Closed

New Sleeper interface #205

wonderfly opened this issue Jan 9, 2015 · 3 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@wonderfly
Copy link
Contributor

From yan...@google.com on March 12, 2013 10:14:13

External references, such as a standards document, or specification? http://javadoc.google-http-java-client.googlecode.com/hg/1.13.1-beta/com/google/api/client/util/Clock.html Java environments (e.g. Java 6, Android 2.3, App Engine, or All)? All Please describe the feature requested. We will add a new Sleeper interface to use for requesting the current thread to sleep as specified in {@link Thread#sleep(long)}. This will be useful for testing because we don't want real tests to actually sleep and instead want to be able to write assertions about the amount of time of sleep that was requested. Sleeper interface should be used everywhere we are currently calling Thread.sleep including HttpRequest, but also BatchRequest and GoogleAccountCredential from the google-api-client project.

Original issue: http://code.google.com/p/google-http-java-client/issues/detail?id=205

@wonderfly wonderfly added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. imported priority: p2 Moderately-important priority. Fix may not be included in next release. labels Jan 9, 2015
@wonderfly wonderfly self-assigned this Jan 9, 2015
@wonderfly
Copy link
Contributor Author

From yan...@google.com on March 12, 2013 11:30:56

Labels: -Priority-High Priority-Medium

@wonderfly
Copy link
Contributor Author

From yan...@google.com on March 13, 2013 09:00:15

https://codereview.appspot.com/7443045/

Status: Started

@wonderfly
Copy link
Contributor Author

From yan...@google.com on March 13, 2013 12:32:47

Status: Fixed

clundin25 pushed a commit to clundin25/google-http-java-client that referenced this issue Aug 11, 2022
This makes the workaround to issue googleapis#204 much easier to discover.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant