The test and its children
# kotest
s
The test and its children
👍 1
s
Then I'm probably better of not using
FreeSpec
😄
s
It'll be the same for any nested test
s
Okay I see. I am not creating new scopes with
-
correctly
s
If the timeout is set at the spec level it applies separately to each test
But the runtime of a test includes any nested tests of course
s
Now you completely lost me
It seems timeouts are applied to
String.minus
, but I don't want that
I want every leaf to use the default timeout, or the one I configure for that spec.
So I think I shouldn't be using
FreeSpec
. Maybe I should create my own spec in this case.
s
What you need is a feature to only apply timeouts at leaf level
s
Yes
s
Ticket it up and I'll add it this weekend
👍 1
s
Any tips for quick fixing because I'm stuck 😅
s
You could wrap the code in the leaf in a withTimeout
s
https://github.com/arrow-kt/arrow-fx/pull/226/commits/f693c959d8fe4b02d53e1e5b31075f4f4eb2cd4f I split them of and turned them all into new `FreeScope`s for now.
Thanks Sam! 👍