[#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:
Evgenii Stratonikov 2022-10-24 15:49:13 +03:00 committed by fyrchik
parent 7c3ac7150d
commit 6c9423cfb0
3 changed files with 15 additions and 2 deletions

View file

@ -114,6 +114,7 @@ func restoreContainers(cmd *cobra.Command, _ []string) error {
if err != nil {
return err
}
defer wCtx.close()
nnsCs, err := wCtx.Client.GetContractStateByID(1)
if err != nil {
@ -179,7 +180,7 @@ func restoreContainers(cmd *cobra.Command, _ []string) error {
panic(bw.Err)
}
if err := wCtx.sendCommitteeTx(bw.Bytes(), true); err != nil {
if err := wCtx.sendConsensusTx(bw.Bytes()); err != nil {
return err
}
}