Skip to content

Instantly share code, notes, and snippets.

@guliash
Created December 11, 2017 15:47
Show Gist options
  • Save guliash/73752bc41a5cf5725ecb36bd419ff5a7 to your computer and use it in GitHub Desktop.
Save guliash/73752bc41a5cf5725ecb36bd419ff5a7 to your computer and use it in GitHub Desktop.
RetryWhenWithoutComposingErrors
@Test
public void retryWhenWithoutComposingErrors() {
TestSubscriber subscriber = new TestSubscriber();
Observable.just(1)
.retryWhen(errors -> Observable.never())
.subscribe(subscriber);
subscriber.assertCompleted();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment