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

Tests for beacon-chain/node/config.go #8769

Merged
merged 3 commits into from
Apr 15, 2021
Merged

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Apr 15, 2021

What type of PR is this?

Testing

What does this PR do? Why is it needed?

Adds tests for the beacon-chain/node/config.go file.

Which issues(s) does this PR fix?

N/A

Other notes for review

N/A

@rkapka rkapka requested a review from a team as a code owner April 15, 2021 08:57
@codecov
Copy link

codecov bot commented Apr 15, 2021

Codecov Report

Merging #8769 (9fa4576) into develop (aba2ec9) will increase coverage by 0.03%.
The diff coverage is n/a.

❗ Current head 9fa4576 differs from pull request most recent head a015c7c. Consider uploading reports for the commit a015c7c to get more accurate results

@@             Coverage Diff             @@
##           develop    #8769      +/-   ##
===========================================
+ Coverage    60.45%   60.48%   +0.03%     
===========================================
  Files          517      517              
  Lines        36203    36203              
===========================================
+ Hits         21887    21898      +11     
- Misses       11142    11144       +2     
+ Partials      3174     3161      -13     

set.Uint64(flags.NetworkID.Name, 0, "")
set.String(flags.DepositContractFlag.Name, "", "")
require.NoError(t, set.Set(flags.ChainID.Name, strconv.Itoa(100)))
require.NoError(t, set.Set(flags.NetworkID.Name, strconv.Itoa(100)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally, we should use different values, when testing multiple setters. If internally, say due to copy/paste in getter, we will expose NetworkID in both getters, this error will go unnoticed, when we use the same setter value.

Copy link
Contributor

@farazdagi farazdagi left a comment

Choose a reason for hiding this comment

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

lgtm

@prylabs-bulldozer prylabs-bulldozer bot merged commit 2c6549b into develop Apr 15, 2021
@delete-merged-branch delete-merged-branch bot deleted the node-config-tests branch April 15, 2021 10:01
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