Skip to content

Commit

Permalink
Merge pull request #401 from j75689/fix/sync_from_genesis
Browse files Browse the repository at this point in the history
fix: sync failed from genesis
  • Loading branch information
j75689 authored Mar 7, 2024
2 parents ef1f7f0 + 63dcefe commit 74c1626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
test-integration:
go test ./integration/... -timeout 30m
go test -failfast ./integration/... -timeout 30m

test-integration-cov:
go test ./integration/... -timeout 30m -coverpkg=../... -coverprofile=integration-profile.out -covermode=atomic
go test -failfast ./integration/... -timeout 30m -coverpkg=../... -coverprofile=integration-profile.out -covermode=atomic

test-e2e:
go test ./e2e/... -mod=readonly -timeout 30m -race -tags='e2e'
go test ./e2e/... -failfast -mod=readonly -timeout 30m -race -tags='e2e'

test-e2e-cov:
go test ./e2e/... -mod=readonly -timeout 30m -race -tags='e2e' -coverpkg=../... -coverprofile=e2e-profile.out -covermode=atomic
go test ./e2e/... -failfast -mod=readonly -timeout 30m -race -tags='e2e' -coverpkg=../... -coverprofile=e2e-profile.out -covermode=atomic
2 changes: 1 addition & 1 deletion x/upgrade/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (k Keeper) IsUpgraded(ctx sdk.Context, name string) bool {

// InitUpgraded execute the upgrade initializer that the upgrade is already applied.
func (k Keeper) InitUpgraded(ctx sdk.Context) error {
iter := storetypes.KVStorePrefixIterator(ctx.KVStore(k.storeKey), []byte{types.DoneByte})
iter := storetypes.KVStorePrefixIterator(ctx.KVStoreWithZeroRead(k.storeKey), []byte{types.DoneByte})
defer iter.Close()

for ; iter.Valid(); iter.Next() {
Expand Down

0 comments on commit 74c1626

Please sign in to comment.