Skip to content

Commit

Permalink
fixup! Config: Add assetEnabled version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Oct 14, 2024
1 parent d83acc4 commit 98d2e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions currency/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,11 @@ func TestIsPairAvailable(t *testing.T) {
assert.ErrorIs(t, err, asset.ErrNotSupported, "Should error when asset is not supported")

pm.Pairs[asset.PerpetualSwap] = &PairStore{}
_, err = pm.IsPairAvailable(cp, asset.PerpetualSwap)
ok, err = pm.IsPairAvailable(cp, asset.PerpetualSwap)
assert.NoError(t, err, "IsPairAvailable should not error when store is empty")
assert.False(t, ok, "IsPairAvailable should return false when store is empty")

ok, err = pm.IsPairAvailable(EMPTYPAIR, asset.PerpetualSwap)
_, err = pm.IsPairAvailable(EMPTYPAIR, asset.PerpetualSwap)
assert.ErrorIs(t, err, ErrCurrencyPairEmpty, "Should error when currency pair is empty")
}

Expand Down

0 comments on commit 98d2e14

Please sign in to comment.