Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: use serverReceivedTime over parseTime for stacking #5824

Merged
merged 6 commits into from
Jan 19, 2025

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jan 14, 2025

The tests are dying. Twitch hates us. The animals are leaving. The aliens aren’t contacting us. We might be alone. It just might be you and me. But that’s okay. Because do you really need anyone else?

Anyways, this replaces the use of parseTime with serverReceivedTime, because parseTime isn't set for regular messages (it's set to the current time, meaning our tests will be correct just once throughout the day).

I marked this as a draft, because I don't have time and this needs tests for the stacking of regular timeout messages. If you want to add some, feel free to push to this branch.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/common/Channel.hpp Show resolved Hide resolved
src/common/Channel.hpp Show resolved Hide resolved
src/messages/MessageSink.hpp Show resolved Hide resolved
src/messages/MessageSink.hpp Show resolved Hide resolved
src/util/VectorMessageSink.cpp Show resolved Hide resolved
src/util/VectorMessageSink.cpp Show resolved Hide resolved
src/util/VectorMessageSink.hpp Show resolved Hide resolved
src/util/VectorMessageSink.hpp Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/util/ChannelHelpers.hpp Show resolved Hide resolved
Comment on lines +82 to +83
"messageText": "twitchdev has been timed out for 10m. (3 times) ",
"searchText": "twitchdev has been timed out for 10m. (3 times) ",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This seems wrong, but that's the current behavior.

@Nerixyz Nerixyz marked this pull request as ready for review January 15, 2025 20:45
@pajlada pajlada enabled auto-merge (squash) January 19, 2025 11:46
@pajlada pajlada merged commit c195925 into Chatterino:master Jan 19, 2025
18 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants