Skip to content

Commit 0a96f2e

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 9e9a877 commit 0a96f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/groovy/rx/lang/groovy/ObservableTests.groovy

+2-2
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)