Skip to content

Commit

Permalink
fixup! GateIO: Improve WS Header parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jan 13, 2025
1 parent 7e730dd commit 2cfa3e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exchanges/gateio/gateio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3543,11 +3543,11 @@ func TestParseWSHeader(t *testing.T) {
assert.NotEmpty(t, h.Result)
switch h.ID {
case 1:
assert.EqualValues(t, 1726121320745, h.Time.UnixMilli())
assert.Equal(t, int64(1726121320745), h.Time.UnixMilli())
case 2:
assert.EqualValues(t, 1726121320746, h.Time.UnixMilli())
assert.Equal(t, int64(1726121320746), h.Time.UnixMilli())
case 3:
assert.EqualValues(t, 1726121321, h.Time.Unix())
assert.Equal(t, int64(1726121321), h.Time.Unix())
}
}
}

0 comments on commit 2cfa3e7

Please sign in to comment.