Skip to content

Conversation

@paualarco
Copy link
Member

No description provided.

Copy link
Collaborator

@Avasil Avasil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've left some comments but it looks great!

@paualarco paualarco requested a review from Avasil April 1, 2020 17:20
* WARNING: For infinite streams the process will eventually
* blow up with an out of memory error.
*/
def toListL[A]: Consumer[A, List[A]] =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L is only used in Observable to differentiate between methods returning Task and Observable, I would leave just toList in Consumer. Sorry for nitpick :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, I have changed that already :)

assert(s.state.tasks.isEmpty, "TestScheduler should have no pending tasks")
}

test("should return the same all consumed elements as a sequence") { implicit s =>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it needs s.tick() for tests to pass and it's good to merge :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought it was passing already...
is there a better way of running minitests than "sbt project reactiveTests" andThen "sbt test"?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReactiveTests is something else but I can see how it is confusing :D

reactiveJVM/test

or

reactiveJVM/testOnly *NameOfTheTestClass

Copy link
Collaborator

@Avasil Avasil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you :)

@Avasil Avasil merged commit e5d4a04 into monix:master Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants