Skip to content

Commit

Permalink
fix: update main test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Dec 21, 2024
1 parent 35a53fb commit 06b069e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -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,
Expand Down

0 comments on commit 06b069e

Please sign in to comment.