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

Add C Serialization Tests for #17217 #17294

Merged
merged 1 commit into from
May 17, 2021
Merged

Conversation

jackcmay
Copy link
Contributor

Problem

#17217 fix went in but didn't contain a verifying test

Summary of Changes

Add test

Fixes #

@codecov
Copy link

codecov bot commented May 17, 2021

Codecov Report

Merging #17294 (f809bd6) into master (8a574ba) will decrease coverage by 0.0%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #17294     +/-   ##
=========================================
- Coverage    82.7%    82.7%   -0.1%     
=========================================
  Files         421      421             
  Lines      118023   118023             
=========================================
- Hits        97661    97646     -15     
- Misses      20362    20377     +15     

@jackcmay jackcmay added the v1.6 label May 17, 2021
@jackcmay jackcmay merged commit f15dd1b into solana-labs:master May 17, 2021
@jackcmay jackcmay deleted the c-ser-test branch May 17, 2021 23:34
mergify bot pushed a commit that referenced this pull request May 17, 2021
for (int i = 0; i < 2; i++) {
sol_assert(*params.ka[i].lamports == 42);
sol_assert(!sol_memcmp(params.ka[i].data, ka_data, 4));
sol_assert(SolPubkey_same(params.ka[i].owner, &ka_owner));
Copy link
Contributor

Choose a reason for hiding this comment

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

This test seems to fail consistently at this line. Why should it work if local struct ka_owner is not initialized? What am I missing?..

@jackcmay
Copy link
Contributor Author

jackcmay commented May 18, 2021 via email

@dmakarov
Copy link
Contributor

but the params.ka[i].owner is not zero.

@jackcmay
Copy link
Contributor Author

Fixed in: #17310

jackcmay added a commit that referenced this pull request May 19, 2021
mergify bot added a commit that referenced this pull request May 19, 2021
(cherry picked from commit f15dd1b)

Co-authored-by: Jack May <jack@solana.com>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
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