Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
larscom committed Aug 29, 2024
1 parent 6a3cb20 commit c3f44b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bitvavo/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestMaxOrderNewMarshaller(t *testing.T) {
t.Error(err)
}

expected := "{\"market\":\"ETH-EUR\",\"amount\":1.5,\"price\":2500.5,\"amountQuote\":105.5,\"triggerAmount\":10.2,\"postOnly\":true,\"responseRequired\":true,\"side\":\"buy\",\"orderType\":\"limit\",\"triggerType\":\"price\",\"triggerReference\":\"bestAsk\",\"timeInForce\":\"GTC\",\"selfTradePrevention\":\"decrementAndCancel\"}"
expected := "{\"market\":\"ETH-EUR\",\"amount\":\"1.5\",\"price\":\"2500.50\",\"amountQuote\":\"105.5\",\"triggerAmount\":\"10.2\",\"postOnly\":true,\"responseRequired\":true,\"side\":\"buy\",\"orderType\":\"limit\",\"triggerType\":\"price\",\"triggerReference\":\"bestAsk\",\"timeInForce\":\"GTC\",\"selfTradePrevention\":\"decrementAndCancel\"}"
actual := string(bytes)

fmt.Printf("%q", actual)
Expand Down Expand Up @@ -79,7 +79,7 @@ func TestMaxOrderUpdateMarshaller(t *testing.T) {
t.Error(err)
}

expected := "{\"market\":\"ETH-EUR\",\"orderId\":\"123\",\"amount\":1.5,\"amountQuote\":105.5,\"amountRemaining\":10.5,\"price\":2500.5,\"triggerAmount\":10.2,\"postOnly\":true,\"responseRequired\":true,\"timeInForce\":\"GTC\",\"selfTradePrevention\":\"decrementAndCancel\"}"
expected := "{\"market\":\"ETH-EUR\",\"orderId\":\"123\",\"amount\":\"1.5\",\"amountQuote\":\"105.5\",\"amountRemaining\":\"10.5\",\"price\":\"2500.50\",\"triggerAmount\":\"10.2\",\"postOnly\":true,\"responseRequired\":true,\"timeInForce\":\"GTC\",\"selfTradePrevention\":\"decrementAndCancel\"}"
actual := string(bytes)

fmt.Printf("%q", actual)
Expand Down

0 comments on commit c3f44b8

Please sign in to comment.