-
Notifications
You must be signed in to change notification settings - Fork 328
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
[ioctl] Cleanup TestNewNodeDelegateCmd #3421
[ioctl] Cleanup TestNewNodeDelegateCmd #3421
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3421 +/- ##
==========================================
- Coverage 75.28% 75.27% -0.02%
==========================================
Files 241 241
Lines 22258 22261 +3
==========================================
- Hits 16758 16757 -1
- Misses 4597 4602 +5
+ Partials 903 902 -1
Continue to review full report at Codecov.
|
nodedelegate.go#L99 iotex-core/ioctl/cmd/node/nodedelegate.go Line 290 in 46602a9
|
nodedelegate.go#L99 |
iotex-core/ioctl/newcmd/node/nodedelegate.go Lines 240 to 243 in 623be41
|
@@ -244,8 +247,6 @@ func NewNodeDelegateCmd(client ioctl.Client) *cobra.Command { | |||
flagEpochNumUsage) | |||
cmd.Flags().BoolVarP(&nextEpoch, "next-epoch", "n", false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CoderZhi next-epoch
is a new flag here and not exist in ioctl/cmd/node/nodedelegate.go
. I'm not sure if it can be used like this. In cmd nextEpoch is distinguished by
iotex-core/ioctl/cmd/node/nodedelegate.go
Lines 151 to 153 in 46602a9
if epochData.Height >= config.ReadConfig.Nsv2height { | |
return delegatesV2(probationList, response, &message) | |
} |
I think we should create new pr to change to the original logic.
fixed |
map could be replaced with if... else |
* upstream/master: (24 commits) account type with zero init nonce (iotexproject#3387) [api] Separate Server and Server Handler (iotexproject#3485) [ioctl] Build hdwallet derive command line into new ioctl (iotexproject#3418) [ioctl] Build hdwallet create command line into new ioctl (iotexproject#3470) [makefile] add go mod tidy (iotexproject#3471) [api] update chain metrics (iotexproject#3484) remove config.EVMNetworkID() (iotexproject#3460) [filedao] remove checkMasterChainDBFile() (iotexproject#3463) [api] add crashlog (iotexproject#3456) [api] Move generateBlockMeta to grpcserver.go (iotexproject#3303) [ioctl] Build action hash command line into new ioctl (iotexproject#3425) [ioctl] Build hdwallet export command line into new ioctl (iotexproject#3423) [ioctl] Refactor nodereward command in new ioctl (iotexproject#3416) [ioctl] Cleanup TestNewNodeDelegateCmd (iotexproject#3421) [blockchain] Remove BoltDBDaoOption (iotexproject#3465) remove InMemDaoOption (iotexproject#3464) [action] add evm london test (iotexproject#3402) [ioctl] create main for ioctl/newcmd (iotexproject#3296) [ioctl] Build block bucket command line into new ioctl (iotexproject#3386) [ioctl] Build hdwallet import command line into new ioctl (iotexproject#3419) ...
Description
Cleanup
TestNewNodeDelegateCmd
with following adjustment.AnyTimes
with specificTimes
client
and variable to correspondt.Run
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: