Skip to content

Commit a5f11a2

Browse files
Fix unit tests
Not sure why the previous started having issues when removing UnitTests from jar. After spending 30+ minutes on it I just changed the test instead of trying to grok Groovy compile issues.
1 parent ffbfb67 commit a5f11a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language-adaptors/rxjava-groovy/src/test/groovy/rx/lang/groovy/ObservableTests.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def class ObservableTests {
7272

7373
@Test
7474
public void testMap1() {
75-
new TestFactory().getObservable().map({v -> 'say' + v}).subscribe({ result -> a.received(result)});
76-
verify(a, times(1)).received("sayhello_1");
75+
Observable.from(1).map({v -> 'hello_' + v}).subscribe({ result -> a.received(result)});
76+
verify(a, times(1)).received("hello_1");
7777
}
7878

7979
@Test

0 commit comments

Comments
 (0)