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

Failing tests #1794

Closed
jeremyjonas867 opened this issue Oct 18, 2019 · 5 comments
Closed

Failing tests #1794

jeremyjonas867 opened this issue Oct 18, 2019 · 5 comments

Comments

@jeremyjonas867
Copy link

Hello. After successfully setting up a Chainlink node, I'm failing tests with the following output

 FAIL  __tests__/containers/SignIn.test.js
  ● containers/SignIn › unauthenticated user can input credentials and sign in

    fetch-mock: No fallback response defined for POST to 6688/sessions

       7 | ): Promise<Response> {
       8 |   return Promise.race([
    >  9 |     fetch(url, options),
         |     ^
      10 |     (new Promise((_, reject) =>
      11 |       setTimeout(() => reject(new Error('timeout')), timeout),
      12 |     ) as any) as Response,

System Information

  • Go version: 1.13.1
  • Host OS: Debian
  • Commit (INFO line when starting the node): 6a2d5e4

This happens on a newly cloned repository, in operator-ui while running npm run test

@thodges-gh
Copy link
Contributor

@jeremyjonas867 I'm also on Debian and get passing tests when cloning to a new directory. What version of node and yarn are you running?

Here are mine:

$ node -v
v10.15.3
$ yarn -v
1.19.1

@HenryNguyen5
Copy link
Collaborator

This is related to how we're forming urls for requests, @rupurt was running into the same issue. At least for now, you can work around this test failure by making sure you have CHAINLINK_PORT env var undefined before running the test.

@thodges-gh
Copy link
Contributor

Yep, once I set CHAINLINK_PORT, I get failing tests.

@hellobart
Copy link
Contributor

Fixed by #1896

@rupurt rupurt closed this as completed Nov 9, 2019
@rupurt
Copy link
Contributor

rupurt commented Nov 9, 2019

Top stuff @hellobart

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

5 participants