Skip to content
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

Timeout config fails #879

Closed
Nimamoh opened this issue Jul 7, 2019 · 2 comments

Comments

@Nimamoh
Copy link

commented Jul 7, 2019

Hello,

Using the release 3.3.2. This example test runs 10 seconds then success

class TimeoutFails : StringSpec() {

    init {
        "Timeout fails".config(timeout = Duration.ofSeconds(1L)) {
            assertAll(10, Gen.string()) {
                Thread.sleep(1000)
            }
        }
    }
}

According to the doc, I'd expect the test to be cancelled after 1 second and fail

@sksamuel

This comment has been minimized.

Copy link
Member

commented Jul 7, 2019

@Kerooker Kerooker added the bug label Jul 7, 2019

@sksamuel sksamuel referenced this issue Jul 20, 2019

Closed

KotlinTest Roadmap 3.4 #788

39 of 39 tasks complete

sksamuel added a commit that referenced this issue Jul 20, 2019

@sksamuel sksamuel added this to the 3.4 milestone Jul 20, 2019

sksamuel added a commit that referenced this issue Jul 21, 2019

Timeout config fails #879 Global timeout #858 (#910)
* Timeout config fails #879 Global timeout #858

* Fixing tests

* Fixed test
@sksamuel

This comment has been minimized.

Copy link
Member

commented Jul 21, 2019

Fixed in 3.4 and I'll back port to 3.3.4

@sksamuel sksamuel closed this Jul 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.