Commit 2035d235 authored by Jonathan Levi (HACERA)'s avatar Jonathan Levi (HACERA) Committed by Gerrit Code Review
Browse files

Merge "[FAB-11661] fix wrong description"

parents 080f1aff b540d551
......@@ -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 (
......@@ -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())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment