Skip to content

Commit

Permalink
test for new migration function
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jan 22, 2024
1 parent fa6633e commit 67cad54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/observer/migrations/v5/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ func TestMigrateObserverMapper(t *testing.T) {
}
assert.Equal(t, 0, len(observerMappers))
})

t.Run("TestMigrateStoreNoObserverMapper", func(t *testing.T) {
k, ctx := keepertest.ObserverKeeper(t)
err := v5.MigrateObserverMapper(ctx, k.StoreKey(), k.Codec())
assert.NoError(t, err)
_, found := k.GetObserverSet(ctx)
assert.False(t, found)
})
}

func TestMigrateObserverParams(t *testing.T) {
Expand Down

0 comments on commit 67cad54

Please sign in to comment.