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

testsuite: trivial test fixes #5498

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Oct 12, 2023

This PR contains a couple trivial fixes for the tests. There wasn't really anywhere else to put these, thus this PR.

  • Avoid use of round with jq (not supported on jq 1.5 which is the version on bionic)
  • Fix a silly leak in a unit test.

Problem: Some versions of jq(1) do not have the math `round` function,
which causes a test in t2290-job-update.t to fail.

Use `floor` instead to implement the test.
Problem: valgrind detects a leak in libflux test_disconnect.t.

Free the message returned by flux_recv(3) to fix the leak.

Fixes flux-framework#5497
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

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

Oh you found that disconnect one! Sorry I didn't circle back to that and thanks!

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #5498 (b73c394) into master (75d0379) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5498      +/-   ##
==========================================
+ Coverage   83.68%   83.70%   +0.01%     
==========================================
  Files         484      484              
  Lines       81561    81561              
==========================================
+ Hits        68257    68272      +15     
+ Misses      13304    13289      -15     

see 7 files with indirect coverage changes

@mergify mergify bot merged commit cbd871d into flux-framework:master Oct 12, 2023
32 checks passed
@grondo
Copy link
Contributor Author

grondo commented Oct 12, 2023

Thanks!

@grondo grondo deleted the jq-round branch October 12, 2023 22:00
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.

2 participants