-
Notifications
You must be signed in to change notification settings - Fork 455
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
Conversation
modules/effects/arrow-effects-data/src/test/kotlin/arrow/effects/IOTest.kt
Outdated
Show resolved
Hide resolved
modules/optics/arrow-optics/src/test/kotlin/arrow/optics/std/ListTest.kt
Show resolved
Hide resolved
…lems' into arf-solve-update-kotlintest-problems
modules/optics/arrow-optics/src/test/kotlin/arrow/optics/std/ListTest.kt
Show resolved
Hide resolved
@raulraja @pakoito @AdrianRaFo RxJava & Reactor instances should be fixed and the new Bracket law passes for them. That just leaves |
@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? |
@raulraja well, if we're going with that strategy than So if we're going to provide an implementation for |
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> { |
There was a problem hiding this comment.
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 { ...
There was a problem hiding this 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
…lems' into arf-solve-update-kotlintest-problems
@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.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pakoito could you do a post mortem PR review? I am going to merge already so we have laws running on master again.
Most specific for the Rx/Reactor Bracket bug fix.
ObservableK: https://github.com/arrow-kt/arrow/pull/1255/files#diff-dfc12f9d2453890aa332bed571a19f0a
SingleK: https://github.com/arrow-kt/arrow/pull/1255/files#diff-89d6c0960f46eac3d6f80d0f4ba14667
MaybeK: https://github.com/arrow-kt/arrow/pull/1255/files#diff-58109fc55101cf74a70000646921a14f
FlowableK: https://github.com/arrow-kt/arrow/pull/1255/files#diff-dcafde87192177e1924b0dca1510d9f0
MonoK: https://github.com/arrow-kt/arrow/pull/1255/files#diff-55a0cc4b7999477cdba28ae0cc9c8731
FluxK: https://github.com/arrow-kt/arrow/pull/1255/files#diff-d82a687b8b4cee7c8480040c8411d416
Fix the problem because the laws are not running.
Also fix some deprecations and a bad merge from master