This commit is contained in:
Callum Waters
2022-11-17 18:28:55 +01:00
parent 94aa1ca3ed
commit d0377e83a3
10 changed files with 41 additions and 41 deletions
+1 -5
View File
@@ -24,10 +24,6 @@ import (
"github.com/tendermint/tendermint/version"
)
// A cleanupFunc cleans up any config / test files created for a particular
// test.
type cleanupFunc func()
// make an extended commit with a single vote containing just the height and a
// timestamp
func makeTestExtCommit(height int64, timestamp time.Time) *types.ExtendedCommit {
@@ -85,7 +81,7 @@ func TestLoadBlockStoreState(t *testing.T) {
db := dbm.NewMemDB()
batch := db.NewBatch()
SaveBlockStoreState(batch, tc.bss)
batch.WriteSync()
require.NoError(t, batch.WriteSync())
batch.Close()
retrBSJ := LoadBlockStoreState(db)
assert.Equal(t, tc.want, retrBSJ, "expected the retrieved DBs to match: %s", tc.testName)