File tree 3 files changed +3
-9
lines changed
src/test/java/io/reactivex/internal/operators/maybe
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -135,16 +135,14 @@ public void noErrorLoss() throws Exception {
135
135
@ Override
136
136
public void run () throws Exception {
137
137
cdl1 .countDown ();
138
- cdl2 .await ();
138
+ cdl2 .await (5 , TimeUnit . SECONDS );
139
139
}
140
140
}).subscribeOn (Schedulers .single ()).test ();
141
141
142
142
assertTrue (cdl1 .await (5 , TimeUnit .SECONDS ));
143
143
144
144
to .cancel ();
145
145
146
- cdl2 .countDown ();
147
-
148
146
int timeout = 10 ;
149
147
150
148
while (timeout -- > 0 && errors .isEmpty ()) {
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ public void noErrorLoss() throws Exception {
138
138
@ Override
139
139
public Integer call () throws Exception {
140
140
cdl1 .countDown ();
141
- cdl2 .await ();
141
+ cdl2 .await (5 , TimeUnit . SECONDS );
142
142
return 1 ;
143
143
}
144
144
}).subscribeOn (Schedulers .single ()).test ();
@@ -147,8 +147,6 @@ public Integer call() throws Exception {
147
147
148
148
to .cancel ();
149
149
150
- cdl2 .countDown ();
151
-
152
150
int timeout = 10 ;
153
151
154
152
while (timeout -- > 0 && errors .isEmpty ()) {
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ public void noErrorLoss() throws Exception {
134
134
public void run () {
135
135
cdl1 .countDown ();
136
136
try {
137
- cdl2 .await ();
137
+ cdl2 .await (5 , TimeUnit . SECONDS );
138
138
} catch (InterruptedException ex ) {
139
139
throw new RuntimeException (ex );
140
140
}
@@ -145,8 +145,6 @@ public void run() {
145
145
146
146
to .cancel ();
147
147
148
- cdl2 .countDown ();
149
-
150
148
int timeout = 10 ;
151
149
152
150
while (timeout -- > 0 && errors .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments