Skip to content

Commit

Permalink
Binance: Test fixes for UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jun 18, 2024
1 parent 23e661d commit 9aa913e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exchanges/binance/binance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2608,8 +2608,8 @@ func TestWsOrderExecutionReport(t *testing.T) {
Side: order.Buy,
Status: order.New,
AssetType: asset.Spot,
Date: time.UnixMilli(1616627567900),
LastUpdated: time.UnixMilli(1616627567900),
Date: time.UnixMilli(1616627567900).UTC(),
LastUpdated: time.UnixMilli(1616627567900).UTC(),
Pair: currency.NewPair(currency.BTC, currency.USDT),
}
// empty the channel. otherwise mock_test will fail
Expand Down
4 changes: 2 additions & 2 deletions exchanges/binanceus/binanceus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1745,8 +1745,8 @@ func TestWebsocketOrderExecutionReport(t *testing.T) {
Side: order.Buy,
Status: order.New,
AssetType: asset.Spot,
Date: time.UnixMilli(1616627567900),
LastUpdated: time.UnixMilli(1616627567900),
Date: time.UnixMilli(1616627567900).UTC(),
LastUpdated: time.UnixMilli(1616627567900).UTC(),
Pair: currency.NewPair(currency.BTC, currency.USDT),
}
for len(bi.Websocket.DataHandler) > 0 {
Expand Down

0 comments on commit 9aa913e

Please sign in to comment.