diff --git a/tests/main_test.go b/tests/main_test.go index 4a5aa586a..14ca0ff97 100644 --- a/tests/main_test.go +++ b/tests/main_test.go @@ -82,10 +82,9 @@ func TestMain(m *testing.M) { tConfigs[i].Logger.Levels["default"] = "info" tConfigs[i].Logger.Levels["_state"] = "info" tConfigs[i].Logger.Levels["_sync"] = "info" - tConfigs[i].Logger.Levels["_consensus"] = "info" + tConfigs[i].Logger.Levels["_consensus"] = "debug" tConfigs[i].Logger.Levels["_network"] = "info" tConfigs[i].Logger.Levels["_pool"] = "info" - tConfigs[i].Logger.Levels["_firewall"] = "info" tConfigs[i].Sync.Firewall.BannedNets = make([]string, 0) tConfigs[i].Sync.BlockPerSession = 10 tConfigs[i].Network.EnableMdns = true @@ -131,7 +130,7 @@ func TestMain(m *testing.M) { genParams.BondInterval = 8 genParams.CommitteeSize = tCommitteeSize genParams.TransactionToLiveInterval = 8 - tGenDoc = genesis.MakeGenesis(time.Now(), accs, vals, genParams) + tGenDoc = genesis.MakeGenesis(time.Now().Add(10*time.Second), accs, vals, genParams) for i := 0; i < tTotalNodes; i++ { tNodes[i], _ = node.NewNode( @@ -157,10 +156,10 @@ func TestMain(m *testing.M) { tConfigs[tNodeIdx3].Network.BootstrapAddrStrings = []string{bootstrapAddr} tConfigs[tNodeIdx4].Network.BootstrapAddrStrings = []string{bootstrapAddr} } - - time.Sleep(1 * time.Second) } + time.Sleep(10 * time.Second) + tCtx = context.Background() conn, err := grpc.NewClient( tGRPCAddress,