Skip to content

Commit 53d0416

Browse files
authored
Merge pull request #126 from ksiamis-connamara/usr/changes_to_allow_unit_tests_and_build_to_pass
Unit Test Updates and minor change to allow Travis CI build to pass.
2 parents 9b18c5e + 22f398e commit 53d0416

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
language: go

tests/integration/v2/reconnect_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func newTestParams(wsPort int) *websocket.Parameters {
3737
p.ShutdownTimeout = time.Second * 4
3838
p.URL = fmt.Sprintf("ws://localhost:%d", wsPort)
3939
p.AutoReconnect = true
40-
p.ReconnectInterval = time.Millisecond * 250 // first reconnect is instant, won't need to wait on this
40+
p.ReconnectInterval = time.Millisecond * 500 // first reconnect is instant, won't need to wait on this
4141
return p
4242
}
4343

v2/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ type TradeExecution struct {
568568

569569
func NewTradeExecutionFromRaw(raw []interface{}) (o *TradeExecution, err error) {
570570
if len(raw) < 6 {
571-
log.Printf("[ERROR] not enough members (%d, need at least 6) for trade execution: %#v", raw)
571+
log.Printf("[ERROR] not enough members (%d, need at least 6) for trade execution: %#v", len(raw), raw)
572572
return o, fmt.Errorf("data slice too short for trade execution: %#v", raw)
573573
}
574574

0 commit comments

Comments
 (0)