Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into feature/extensible-has…
Browse files Browse the repository at this point in the history
…hring
  • Loading branch information
Menno Pruijssers committed Dec 19, 2016
2 parents d721c7e + 561b183 commit 1d5b23d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ addons:
packages:
- python-virtualenv

go_import_path: github.com/uber/ringpop-go

install:
- go get -u github.com/Masterminds/glide
- go get github.com/axw/gocov/gocov
Expand Down
1 change: 1 addition & 0 deletions discovery/jsonfile/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ func TestNiceJSONFile(t *testing.T) {
// Now actually test the DiscoverProvider:Hosts() will return the two
provider := New(tmpfile.Name())
res, err := provider.Hosts()
assert.NoError(t, err, "hosts call failed")
assert.Equal(t, []string{"127.0.0.1:3000", "127.0.0.1:3042"}, res)
}
2 changes: 2 additions & 0 deletions forward/forwarder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func (s *ForwarderTestSuite) TestForwardThrift() {
var response pingpong.PingPongPingResult

err = DeserializeThrift(res, &response)
s.NoError(err)

s.Equal("correct pinging host", response.Success.Source)
}
Expand All @@ -211,6 +212,7 @@ func (s *ForwarderTestSuite) TestForwardThriftErrorResponse() {
var response pingpong.PingPongPingResult

err = DeserializeThrift(res, &response)
s.NoError(err)

s.NotNil(response.PingError, "expected a pingerror")
}
Expand Down
2 changes: 1 addition & 1 deletion ringpop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func (s *RingpopTestSuite) TestChecksum() {
s.Equal(ready, s.ringpop.state)
checksum, err = s.ringpop.Checksum()
s.NoError(err)
//s.NotZero(checksum)
s.NotZero(checksum)
}

// TestApp tests that App() returns the correct app name.
Expand Down
4 changes: 3 additions & 1 deletion swim/ping_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ func TestIndirectPing2(t *testing.T) {
cont := make(chan bool, 1)

tnodes := genChannelNodes(t, 4)
defer destroyNodes(tnodes...)
defer func() {
destroyNodes(tnodes...)
}()

// don't bootstrap the target
sender, helper1, helper2, target := tnodes[0], tnodes[1], tnodes[2], tnodes[3]
Expand Down

0 comments on commit 1d5b23d

Please sign in to comment.