Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo committed Feb 11, 2022
1 parent 6bcea04 commit 6565f0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/ecocredit/server/basket/query_basket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func TestKeeper_Basket(t *testing.T) {
// add a basket
basketDenom := "foo"
batchDenom := "bar"
balance := "5.3"
id, err := stateStore.BasketStore().InsertReturningID(ctx, &basketv1.Basket{
_, err = stateStore.BasketStore().InsertReturningID(ctx, &basketv1.Basket{
BasketDenom: basketDenom,
})
require.NoError(t, err)
Expand All @@ -46,7 +45,7 @@ func TestKeeper_Basket(t *testing.T) {
BasketDenom: basketDenom,
})
require.NoError(t, err)
require.Equal(t, basketDenom, res.BasketDenom)
require.Equal(t, basketDenom, res.Basket.BasketDenom)

// bad query
res, err = k.Basket(ctx, &baskettypes.QueryBasketRequest{
Expand Down

0 comments on commit 6565f0b

Please sign in to comment.