File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/test/java/io/reactivex Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,16 @@ public static File findSource(String baseClassName) throws Exception {
40
40
41
41
// System.out.println(path);
42
42
43
- int i = path .indexOf ("/RxJava/ " );
43
+ int i = path .indexOf ("/RxJava" );
44
44
if (i < 0 ) {
45
45
System .out .println ("Can't find the base RxJava directory" );
46
46
return null ;
47
47
}
48
48
49
- String p = path .substring (0 , i + 8 ) + "src/main/java/io/reactivex/" + baseClassName + ".java" ;
49
+ // find end of any potential postfix to /RxJava
50
+ int j = path .indexOf ("/" , i + 6 );
51
+
52
+ String p = path .substring (0 , j + 1 ) + "src/main/java/io/reactivex/" + baseClassName + ".java" ;
50
53
51
54
File f = new File (p );
52
55
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public void onNext(Integer n) {
141
141
}
142
142
});
143
143
a .onNext (1 );
144
- assertTrue (depth .get () > MAX_STACK_DEPTH );
144
+ assertTrue (depth .get () >= MAX_STACK_DEPTH );
145
145
}
146
146
147
147
@ Test (expected = StackOverflowError .class )
You can’t perform that action at this time.
0 commit comments