Skip to content

Commit 7d35ca0

Browse files
committed
update tests for no-ops
1 parent 04754fb commit 7d35ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/store/store_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ func TestRollbackToSameHeight(t *testing.T) {
719719

720720
// Execute rollback to same height
721721
err = store.Rollback(ctx, height, true)
722-
require.NoError(err)
722+
require.Error(err)
723723

724724
// Verify height unchanged
725725
newHeight, err := store.Height(ctx)
@@ -754,7 +754,7 @@ func TestRollbackToHigherHeight(t *testing.T) {
754754
// Execute rollback to higher height
755755
rollbackToHeight := uint64(10)
756756
err = store.Rollback(ctx, rollbackToHeight, true)
757-
require.NoError(err)
757+
require.Error(err)
758758

759759
// Verify height unchanged
760760
newHeight, err := store.Height(ctx)

0 commit comments

Comments
 (0)