Skip to content

Commit

Permalink
Merge "Tiny lint+format fix in gossip leaderElection tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivasan Muralidharan authored and Gerrit Code Review committed Feb 18, 2017
2 parents 6625a79 + dce0aef commit 5525d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gossip/election/adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func TestAdapterImpl_Gossip(t *testing.T) {

channels := make(map[string]<-chan Msg)

for peerId, adapter := range adapters {
channels[peerId] = adapter.Accept()
for peerID, adapter := range adapters {
channels[peerID] = adapter.Accept()
}

sender := adapters[fmt.Sprintf("Peer%d", 0)]
Expand Down
2 changes: 1 addition & 1 deletion gossip/election/election_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func TestPartition(t *testing.T) {
assert.Equal(t, "p0", leaders[0])
for _, p := range peers {
if p.id == leaders[0] {
assert.True(t, p.isLeaderFromCallback, "Leadership callback result is wrong for %", p.id)
assert.True(t, p.isLeaderFromCallback, "Leadership callback result is wrong for %s", p.id)
} else {
assert.False(t, p.isLeaderFromCallback, "Leadership callback result is wrong for %s", p.id)
assert.True(t, p.callbackInvoked, "Leadership callback wasn't invoked for %s", p.id)
Expand Down

0 comments on commit 5525d4d

Please sign in to comment.