From 198ac5b500d6085a249b54eed7077ea899c1eb50 Mon Sep 17 00:00:00 2001 From: Will Lahti Date: Wed, 7 Jun 2017 17:16:27 -0400 Subject: [PATCH] [FAB-4158] Fix leader election intermittent test fail 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 --- gossip/service/gossip_service_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gossip/service/gossip_service_test.go b/gossip/service/gossip_service_test.go index 944349056b0..6a7080f859b 100644 --- a/gossip/service/gossip_service_test.go +++ b/gossip/service/gossip_service_test.go @@ -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" @@ -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)