Skip to content

Commit

Permalink
"Fix" some tests. It looks like the default connect timeout of 2 seco…
Browse files Browse the repository at this point in the history
…nds sometimes cause Travis build to fail. Not changing it at this time, but may have to do something special for Travis.
  • Loading branch information
kozlovic committed Oct 16, 2015
1 parent ac3cb51 commit bfa4615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ func TestQueueSubscriber(t *testing.T) {
t.Fatal("Received too many messages for multiple queue subscribers")
}
// Drain messages
s1.NextMsg(0)
s2.NextMsg(0)
s1.NextMsg(1000)
s2.NextMsg(1000)

total := 1000
for i := 0; i < total; i++ {
Expand Down
2 changes: 1 addition & 1 deletion test/reconnect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestBasicReconnectFunctionality(t *testing.T) {
}

expectedReconnectCount := uint64(1)
if ec.Conn.Reconnects != expectedReconnectCount {
if ec.Conn.Stats().Reconnects != expectedReconnectCount {
t.Fatalf("Reconnect count incorrect: %d vs %d\n",
ec.Conn.Reconnects, expectedReconnectCount)
}
Expand Down

0 comments on commit bfa4615

Please sign in to comment.