Skip to content

Server objects seem to be recycled rather than torn down after each test #21

@hillct

Description

@hillct

By default, the HTTP server objects need to be undef'd after each test, otherwise you end up with collisions. This can be most easily demonstrated if you setup several tests that expect a 200 response, and several tests that expect other responses. Server instances built to handle test 1 may respond to test 2, etc. Better isolation is required in order to make assure reliability. It appears that the current workaround required that you only ever perform one test using unexpected-express per test file.

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