Skip to content

getting error while executing consumer #1

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

Open
chandrasekhaer opened this issue Jun 29, 2021 · 1 comment
Open

getting error while executing consumer #1

chandrasekhaer opened this issue Jun 29, 2021 · 1 comment

Comments

@chandrasekhaer
Copy link

  1. Pact with Order API
    "before all" hook in "Pact with Order API":
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (C:\contract-testing-nodejs-pact-master\consumer.
    spec.js)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

  2. Pact with Order API
    "after all" hook in "Pact with Order API":
    TypeError: Cannot read property 'writePact' of undefined
    at Pact.finalize (node_modules@pact-foundation\pact\httpPact.js:121:14)
    at Context. (consumer.spec.js:15:24)
    at processImmediate (internal/timers.js:461:21)

@vijayadeeptim
Copy link

@chandrasekhaer Im not from the coder-society but faced the same issue. The author seemed to have changed the ports in consumer.spec and consumer.js files on develop branch. That fixed the errors for me .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants