Skip to content

@loopback/rest: HttpHandler integration test times out after 2 seconds randomly #1407

@raymondfeng

Description

@raymondfeng

Description / Steps to reproduce / Feature proposal

Run npm test from loopback-next.

Current Behavior

Sometimes (not always) the http handler integration test fails with timeout.

1) HttpHandler
       with a body request route
         returns 400 for malformed JSON body:
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/rfeng/Projects/loopback4/loopback-next/packages/rest/dist8/test/integration/http-handler.integration.js)

Expected Behavior

It should pass consistently.

See Reporting Issues for more tips on writing good issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions