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

🐛 Elysia doesn't spin down between integration tests #11

Open
Thomasvdam opened this issue Aug 27, 2024 · 0 comments
Open

🐛 Elysia doesn't spin down between integration tests #11

Thomasvdam opened this issue Aug 27, 2024 · 0 comments

Comments

@Thomasvdam
Copy link
Member

🐛 Bug Report

We have to spin up a new data proxy server on a different port every test as for some reason calling await server.stop() doesn't fully close the proxy server and the next test will spin up a new server on the same port, but the old server receives the request.

Steps to Reproduce

  • Make the proxy in the integration test spin up on the same port
  • Run tests
  • Second test should fail as the first instance still handles the request despite calling await proxy.stop()

Code snippet to reproduce

N.A.

Stack trace & error message

N.A.

Expected Behavior

The server should be fully spun down so the new server that's spun up on the same port can handle the request.

Your Environment

  • Latest
  • Bun 1.1.26
  • macOS 14.5
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

1 participant