Skip to content

Uncaught exception in a test method hangs it #8

@dangoodman

Description

@dangoodman

Shoulnd't it abort the loop instead?

Same happens if we just remove the line throw new Exception("TEST");, but I'm not sure whether it's so by design.

class MyAsyncTestCase extends AsyncTestCase { function test() { Loop::repeat(1000, static function() { echo "alive\n"; }); throw new Exception("TEST"); // Doesn't abort the loop. This method runs forever. } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions