mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 23:16:54 +00:00
GCT: fix spelling (#1164)
* kodespull * fix my spelling * silly sausage, rm sneaky pointer
This commit is contained in:
@@ -2638,7 +2638,7 @@ func TestWsOrderExecutionReport(t *testing.T) {
|
||||
// cannot run in parallel due to inspecting the DataHandler result
|
||||
payload := []byte(`{"stream":"jTfvpakT2yT0hVIo5gYWVihZhdM2PrBgJUZ5PyfZ4EVpCkx4Uoxk5timcrQc","data":{"e":"executionReport","E":1616627567900,"s":"BTCUSDT","c":"c4wyKsIhoAaittTYlIVLqk","S":"BUY","o":"LIMIT","f":"GTC","q":"0.00028400","p":"52789.10000000","P":"0.00000000","F":"0.00000000","g":-1,"C":"","x":"NEW","X":"NEW","r":"NONE","i":5340845958,"l":"0.00000000","z":"0.00000000","L":"0.00000000","n":"0","N":"BTC","T":1616627567900,"t":-1,"I":11388173160,"w":true,"m":false,"M":false,"O":1616627567900,"Z":"0.00000000","Y":"0.00000000","Q":"0.00000000"}}`)
|
||||
// this is a buy BTC order, normally commission is charged in BTC, vice versa.
|
||||
expRes := order.Detail{
|
||||
expectedResult := order.Detail{
|
||||
Price: 52789.1,
|
||||
Amount: 0.00028400,
|
||||
AverageExecutedPrice: 0,
|
||||
@@ -2672,8 +2672,8 @@ func TestWsOrderExecutionReport(t *testing.T) {
|
||||
res := <-b.Websocket.DataHandler
|
||||
switch r := res.(type) {
|
||||
case *order.Detail:
|
||||
if !reflect.DeepEqual(expRes, *r) {
|
||||
t.Errorf("Results do not match:\nexpected: %v\nreceived: %v", expRes, *r)
|
||||
if !reflect.DeepEqual(expectedResult, *r) {
|
||||
t.Errorf("Results do not match:\nexpected: %v\nreceived: %v", expectedResult, *r)
|
||||
}
|
||||
default:
|
||||
t.Fatalf("expected type order.Detail, found %T", res)
|
||||
|
||||
Reference in New Issue
Block a user