Skip to content

Commit

Permalink
[FAB-11661] fix wrong description
Browse files Browse the repository at this point in the history
Change-Id: Id29cb1d0b883e76a3bda85fdfc6f713915d8fb48
Signed-off-by: ping40 <[email protected]>
  • Loading branch information
ping40 committed Aug 22, 2018
1 parent ddb03c7 commit b540d55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gossip/election/election_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ import (
"testing"
"time"

"github.com/hyperledger/fabric/core/config/configtest"
"github.com/hyperledger/fabric/gossip/util"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"

"github.com/hyperledger/fabric/core/config/configtest"
"github.com/hyperledger/fabric/gossip/util"
)

const (
Expand Down Expand Up @@ -206,7 +207,7 @@ func TestInitPeersAtSameTime(t *testing.T) {
func TestInitPeersStartAtIntervals(t *testing.T) {
t.Parallel()
// Scenario: Peers are spawned one by one in a slow rate
// expected outcome: the first peer is the leader although its ID is lowest
// expected outcome: the first peer is the leader although its ID is highest
peers := createPeers(getStartupGracePeriod()+getLeadershipDeclarationInterval(), 3, 2, 1, 0)
waitForLeaderElection(t, peers)
assert.True(t, peers[0].IsLeader())
Expand Down

0 comments on commit b540d55

Please sign in to comment.