Skip to content

Commit

Permalink
[FAB-4158] Fix leader election intermittent test fail
Browse files Browse the repository at this point in the history
This CR removes two lines that update two of the gossip logging modules
to level DEBUG. These lines are potentially leading to intermittent
failures of the test case as logging at DEBUG slows test cases down
considerably.

Change-Id: Ie789f8c86c0f1249ddc43b25c9224c8c72cebfa7
Signed-off-by: Will Lahti <[email protected]>
  • Loading branch information
wlahti committed Jun 8, 2017
1 parent 9492d4d commit 198ac5b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gossip/service/gossip_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import (
"github.com/hyperledger/fabric/peer/gossip/mocks"
"github.com/hyperledger/fabric/protos/common"
"github.com/hyperledger/fabric/protos/peer"
"github.com/op/go-logging"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc"
Expand Down Expand Up @@ -332,9 +331,6 @@ func TestLeaderElectionWithRealGossip(t *testing.T) {
// Check correct leader still exist for first channel and new correct leader chosen in second channel
// Stop gossip instances of leader peers for both channels and see that new leader chosen for both

logging.SetLevel(logging.DEBUG, util.LoggingElectionModule)
logging.SetLevel(logging.DEBUG, util.LoggingServiceModule)

// Creating gossip service instances for peers
n := 10
gossips := startPeers(t, n, 20000)
Expand Down

0 comments on commit 198ac5b

Please sign in to comment.