forked from TrueCloudLab/frostfs-node
[#1959] neofs-adm: Add tests for more commands
Also, fix `restore-containers`, but it is hard to test it now. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
7c3ac7150d
commit
6c9423cfb0
3 changed files with 15 additions and 2 deletions
|
@ -31,6 +31,7 @@ func removeNodesCmd(cmd *cobra.Command, args []string) error {
|
|||
if err != nil {
|
||||
return fmt.Errorf("can't initialize context: %w", err)
|
||||
}
|
||||
defer wCtx.close()
|
||||
|
||||
cs, err := wCtx.Client.GetContractStateByID(1)
|
||||
if err != nil {
|
||||
|
@ -52,7 +53,7 @@ func removeNodesCmd(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := wCtx.sendCommitteeTx(bw.Bytes(), true); err != nil {
|
||||
if err := wCtx.sendConsensusTx(bw.Bytes()); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue