cmd: add integration test for rollback functionality (backport #7315) (#7369)

This commit is contained in:
mergify[bot]
2022-01-05 18:07:06 +01:00
committed by GitHub
parent 7770ab0efd
commit c7d338f712
12 changed files with 133 additions and 47 deletions
+4
View File
@@ -40,6 +40,10 @@ func RollbackState(config *cfg.Config) (int64, []byte, error) {
if err != nil {
return -1, nil, err
}
defer func() {
_ = blockStore.Close()
_ = stateStore.Close()
}()
// rollback the last state
return state.Rollback(blockStore, stateStore)