Skip to content

Commit b540d55

Browse files
committed
[FAB-11661] fix wrong description
Change-Id: Id29cb1d0b883e76a3bda85fdfc6f713915d8fb48 Signed-off-by: ping40 <norberthu30@gmail.com>
1 parent ddb03c7 commit b540d55

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gossip/election/election_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ import (
1414
"testing"
1515
"time"
1616

17-
"github.com/hyperledger/fabric/core/config/configtest"
18-
"github.com/hyperledger/fabric/gossip/util"
1917
"github.com/spf13/viper"
2018
"github.com/stretchr/testify/assert"
2119
"github.com/stretchr/testify/mock"
20+
21+
"github.com/hyperledger/fabric/core/config/configtest"
22+
"github.com/hyperledger/fabric/gossip/util"
2223
)
2324

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

0 commit comments

Comments
 (0)