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 tmarshalsegfault depending on execution time #24153

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Sep 22, 2024

Added in #24119, the test checks if every string produced is equal, but the value of the strings depend on the now() timestamp of when they were produced. 30 of them are produced in a for loop in sequence with each other, but the first one is set after the data is marshalled into and unmarshalled from a file. This means the timestamp strings can differ depending on the execution time and causes this test to be flaky. Instead we just make 2 strings from the same data and check if they equal each other.

@Araq Araq merged commit a55c15c into nim-lang:devel Sep 22, 2024
16 checks passed
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from a55c15c

Hint: mm: orc; opt: speed; options: -d:release
174467 lines; 8.435s; 654.516MiB peakmem

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