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

Flaky test fixing #36

Closed
wants to merge 4 commits into from
Closed

Flaky test fixing #36

wants to merge 4 commits into from

Conversation

davesmith00000
Copy link
Contributor

This branch:

  • Vastly improves throughput of the stub services;
  • Removes flaky test running (which was due to unintended shared state which crept in when wiremock was replaced by the pact stubber);
  • Drastically increases pact test speed by removing a hacky Thread.sleep that's been praying on my mind;
  • Allows for many more pacts to be forged per test suite.

Copy link
Contributor

@BenParker22 BenParker22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good to me 👍

} finally {
if (socket != null) {
try {
socket.close()
} catch {
case e: IOException =>
case _: IOException =>
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not specific to the PR, But what's going on with the same try/catch happening 3 times in a row? Whats happening here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each try catch block is catching and ignoring the nested exception. I think there's a comment above this code saying I stole it from a gist, so it's possible it could be simplified but... it works! :-)

@davesmith00000 davesmith00000 deleted the flaky-test-fixing branch August 6, 2018 13:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants