Skip to content

Solve update kotlintest problems #1255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jan 24, 2019
Merged

Conversation

AdrianRaFo
Copy link
Contributor

Fix the problem because the laws are not running.
Also fix some deprecations and a bad merge from master

@AdrianRaFo AdrianRaFo requested a review from a team January 17, 2019 17:29
@nomisRev
Copy link
Member

@raulraja @pakoito @AdrianRaFo RxJava & Reactor instances should be fixed and the new Bracket law passes for them.

That just leaves DeferredK. Had a small discussion with @raulraja yesterday about this. The best we could come up with was removing the current DeferredK impl in favor of an interface Deferred<A> or interface Job<A> impl based of IO. Thoughts?

@raulraja
Copy link
Member

@nomisRev I think the IO strategy bundling dispatchers is the best one we have so far. Are you suggesting we merge this as is? and continue in a different PR for that?

@nomisRev
Copy link
Member

nomisRev commented Jan 22, 2019

@raulraja well, if we're going with that strategy than DeferredK becomes deprecated? Which I would be in favor of given how much time I/we have spent trying to make it work, and it seems I keep failing :D

So if we're going to provide an implementation for interface Deferred<A> based off IO than I don't really see the point doing it in this PR? No, point in blocking this PR for issues we already have in master and even released. Not running laws on master is a bigger issue IMO.

@raulraja
Copy link
Member

Merge at will

@@ -11,28 +10,19 @@ import io.kotlintest.specs.AbstractStringSpec
*/
abstract class UnitSpec : AbstractStringSpec() {

private val lawTestCases = mutableListOf<TestCase>()

fun testLaws(vararg laws: List<Law>): List<TestCase> {
Copy link
Member

Choose a reason for hiding this comment

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

Can this be an expression body like

fun testLaws(vararg laws: List<Law>): List<TestCase> = laws.flatMap { ...

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

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

I am removing my approval since I've done too much work on this PR myself.

I'll approve it once there is approval is a consensus from others.

…lems' into arf-solve-update-kotlintest-problems
@AdrianRaFo
Copy link
Contributor Author

@pakoito comments addressed.
Thanks @nomisRev for your help

@raulraja
Copy link
Member

@nomisRev
Copy link
Member

nomisRev commented Jan 24, 2019

@pakoito could you take a look at the Rx fixes for Bracket?

Edit: did it again. I'm going to stop replying on my phone I keep closing PRs by accident..

@nomisRev nomisRev closed this Jan 24, 2019
@nomisRev nomisRev reopened this Jan 24, 2019
Copy link
Member

@raulraja raulraja left a comment

Choose a reason for hiding this comment

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

👏

@raulraja
Copy link
Member

@nomisRev ready to merge when you and @pakoito are

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

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

@nomisRev nomisRev merged commit 43e732e into master Jan 24, 2019
@nomisRev nomisRev deleted the arf-solve-update-kotlintest-problems branch January 24, 2019 15:10
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.

4 participants