Skip to content

FsockopenTest: add regression test for HTTP string#521

Merged
schlessera merged 1 commit into
developfrom
feature/472-add-http-version-string-test
Sep 3, 2021
Merged

FsockopenTest: add regression test for HTTP string#521
schlessera merged 1 commit into
developfrom
feature/472-add-http-version-string-test

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Aug 30, 2021

PR #339 made a change to safeguard that the HTTP string would always contain a decimal point, never a comma.

The original bug was related to the current locale influencing the results of the call to sprintf().

At the time, no test was added to safeguard the fix against regressions.

This PR now adds this regression test.

I've verified that without the fix as merged in #339, this test would fail.

Includes adjusting the GH Actions workflows to install extra locales, as otherwise the test would fail on the locale being changed to in the test not being available.

Fixes #472

PR 339 made a change to safeguard that the HTTP string would always contain a decimal point, never a comma.

The original bug was related to the current locale influencing the results of the call to `sprintf()`.

At the time, no test was added to safeguard the fix against regressions.

This PR now adds this regression test.

I've verified that without the fix as merged in 339, this test would fail.

Includes adjusting the GH Actions workflows to install extra locales as otherwise the test would fail on the locale being changed to in the test not being available.
@schlessera schlessera merged commit aa859ef into develop Sep 3, 2021
@schlessera schlessera deleted the feature/472-add-http-version-string-test branch September 3, 2021 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test for HTTP version string

2 participants