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

[BUG] Test assertions failing #659

Closed
tejeshreddy opened this issue Dec 3, 2023 · 7 comments
Closed

[BUG] Test assertions failing #659

tejeshreddy opened this issue Dec 3, 2023 · 7 comments

Comments

@tejeshreddy
Copy link
Contributor

What is the bug?

A couple of asserts in the test suite are failing. For all these tests, the expected req.headers.connection is close whereas the actual value is keep-alive

Below are the tests that are failing.

  • test: test/unit/client.test.js Disable keep alive agent
  • test: test/unit/connection.test.js Disable keep alive

Do you have any additional context?

test summary

 FAIL ​ test/unit/client.test.js 1 failed of 122 13s
 ✖ should be equal

 FAIL ​ test/unit/connection.test.js 2 failed of 86 4s
 ✖ should match pattern provided
 ✖ should match pattern provided
@dblock
Copy link
Member

dblock commented Dec 4, 2023

Is this local? The build is passing on main here.

@tejeshreddy
Copy link
Contributor Author

If that's the case, this could be a local issue.

@dblock
Copy link
Member

dblock commented Dec 4, 2023

@tejeshreddy do check and find the root cause! It could be that our CI is not reporting errors 😱

@tejeshreddy
Copy link
Contributor Author

@dblock Sure thing, I will take a look at this. I'll keep you posted on my findings.

@tejeshreddy
Copy link
Contributor Author

I've checked one of the latest CI pipeline execution - Unit test and the same set of test cases seem to be passing. Starting to wonder if this issue is purely local/just my local.

@nhtruong nhtruong removed the untriaged label Dec 4, 2023
@dblock
Copy link
Member

dblock commented Dec 4, 2023

I've checked one of the latest CI pipeline execution - Unit test and the same set of test cases seem to be passing. Starting to wonder if this issue is purely local/just my local.

Good. You should dig up why this happens!

@nhtruong
Copy link
Collaborator

nhtruong commented Jan 9, 2025

Haven't run into this myself and the tests till pass on Github. Closing since it's stale. Feel free to reopen if you think this is still a valid issue.

@nhtruong nhtruong closed this as completed Jan 9, 2025
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

3 participants