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

[ch77330] review tests #2

Closed
wants to merge 3 commits into from
Closed

Conversation

hroederld
Copy link

Added two tests that I would expect to pass. Maybe I have misunderstood how the implementation works though and this is at the wrong layer IDK.

The first test validates dispatch when messages are split at the TCP level without a newline at the end.

The second test validates (although LD does not use this feature) data fields being split across events in a single message.

@hroederld hroederld requested a review from samstokes July 20, 2020 16:59
@samstokes samstokes closed this in #3 Sep 3, 2020
samstokes added a commit that referenced this pull request Sep 3, 2020
This fixes a few bugs and places we weren't quite compliant with the spec:

* the handling for lines split across chunks wasn't quite right and could drop lines if that happened more than once in a stream.
* we were stripping all leading spaces from field values, instead of just the first leading space.
multiple values for the same field would overwrite (now they concatenate instead)
* a line without a colon was treated as an error (now it treats the whole line as the field name, with an empty field value)

Closes #2 (includes commits from that PR, which included tests that discovered some of these bugs).
@cwaldren-ld cwaldren-ld deleted the hr/ch77330/review-tests branch November 30, 2022 18:05
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