Skip to content

Conversation

erikaldsund
Copy link
Contributor

Created pull request on master instead of the 1.0-branch, as requested (ref. pull request #460).

Running the unit tests on the master branch uncovered a race condition in a short test, where the server is started, waited for and then almost immediately stopped again. The race condition resulted in a deadlock. A proposed fix for this issue is in commit 3782044.

The test was failing when built using my mingw64-11.2.0 toolset on the Windows
platform, on the 1.0+3 release.
…ary strings

std::strings with binary data should always be created with the constructor
taking a char pointer and the length of the character data.
…d wait_for_server_start() could lead to deadlock

This is the case in some short, simple unit tests, such as "get_port".
Copy link
Member

@The-EDev The-EDev left a comment

Choose a reason for hiding this comment

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

I've looked at all the changes and everything seems to be alright.

The stream_response and port tests would sometimes fail for seemingly no reason, so I'm hoping this PR fixes that issue.

@The-EDev The-EDev merged commit 68452a3 into CrowCpp:master Jun 13, 2022
@erikaldsund erikaldsund deleted the fix_failing_unittests_in_master_and_1.0 branch June 14, 2022 06:13
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.

2 participants