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
fix(client_tests): Fix port collisions #1223
Conversation
async start(): Promise<number> { | ||
return new Promise((res) => { | ||
this.httpServer.listen(() => { | ||
const address = this.httpServer.address() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would fetch the port directly on this line than there is no need for import { AddressInfo } from 'net'
and for the cast on the line below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, nevermind. Let's keep it as is than, i prefer a cast to AddressInfo
instead of any
. Thanks for clarifying!
Thanks for reporting and fixing the potential port clash. All looks good to me, left a very minor comment that we could fix before i merge it. Thanks! |
@davidmartos96 can you add a changeset please, then i can merge :-) |
@kevin-dp Done! |
We found that the PG ports can collide in 2 of the tests. We've also included a way to automatically assign a port to the client tests http server, as we've sometimes found some flakiness with the fixed port being used already.
We found that the PG ports can collide in 2 of the tests.
We've also included a way to automatically assign a port to the client tests http server, as we've sometimes found some flakiness with the fixed port being used already.