Skip to content

Commit

Permalink
Update test to match new data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Oct 3, 2023
1 parent 9c340dd commit 11edc1c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions exchanges/bitstamp/bitstamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,12 @@ func TestGetAccountTradingFee(t *testing.T) {

fee, err := b.GetAccountTradingFee(context.Background(), currency.NewPair(currency.LTC, currency.BTC))
assert.NoError(t, err, "GetAccountTradingFee should not error")
assert.Len(t, fee, 1, "GetAccountTradingFee should return only 1 fee")
assert.Positive(t, fee.Fees[0], "Maker should be positive")
assert.Positive(t, fee.Fees[1], "Taker should be positive")
assert.Equal(t, fee.Symbol, "ltcbtc", "Symbol should be correct")
if mockTests {
// Live endpoint may well return 0 for these Fees on Bitstamp for new users
assert.Positive(t, fee.Fees.Maker, "Maker should be positive")
assert.Positive(t, fee.Fees.Taker, "Taker should be positive")
}
}

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

0 comments on commit 11edc1c

Please sign in to comment.