File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
rxjava-core/src/main/java/rx/operators Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public void testOnError() throws Throwable {
234
234
}
235
235
236
236
@ Test
237
- public void testOnErrorViaHasNext () throws Throwable {
237
+ public void testOnErrorViaHasNext () throws InterruptedException , ExecutionException {
238
238
Subject <String , String > obs = PublishSubject .create ();
239
239
240
240
Iterator <String > it = next (obs ).iterator ();
@@ -253,15 +253,10 @@ public void testOnErrorViaHasNext() throws Throwable {
253
253
obs .onError (new TestException ());
254
254
255
255
// this should not throw an exception but instead just return false
256
- try {
257
- assertFalse (it .hasNext ());
258
- } catch (Throwable e ) {
259
- fail ("should not have received exception" );
260
- e .printStackTrace ();
261
- }
256
+ assertFalse (it .hasNext ());
262
257
}
263
258
264
- private Future <String > nextAsync (final Iterator <String > it ) throws Throwable {
259
+ private Future <String > nextAsync (final Iterator <String > it ) {
265
260
266
261
return executor .submit (new Callable <String >() {
267
262
You can’t perform that action at this time.
0 commit comments