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

Fix TWCCRecorder base timestamp evaluation bug #86

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Conversation

LVala
Copy link
Member

@LVala LVala commented Mar 11, 2024

The TWCCRecorder module has a default argument that keeps the initial value of System.monotonic_time() (so the subsequent calls could be offset to be positive, as output of System.monotonic_time() is usually negative). The value is evaluated at the compile time and differs from the runtime base System.monotonic_time() value, which is obviously undesired. This PR fixes this issue.

@LVala LVala self-assigned this Mar 11, 2024
@clone1018
Copy link
Contributor

I suspect I experienced this locally during multiple subsequent runs of mix test!

@LVala LVala requested a review from mickel8 March 11, 2024 11:15
@LVala
Copy link
Member Author

LVala commented Mar 11, 2024

@clone1018 most likely, I didn't recompile the module for some time (I guess the baked-in base timestamp value was somehow valid?). I noticed the issue when updating the Elixir version.

Copy link
Member

@mickel8 mickel8 left a comment

Choose a reason for hiding this comment

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

Works for me!

@LVala LVala merged commit 0a4913d into master Mar 11, 2024
4 checks passed
@LVala LVala deleted the fix-twcc-tests branch March 11, 2024 11:34
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.

3 participants