diff --git a/test/bba/node.go b/test/bba/node.go index 11a0a4a..779fd53 100644 --- a/test/bba/node.go +++ b/test/bba/node.go @@ -109,7 +109,3 @@ func (n *Node) Info() cleisthenes.Address { func (n *Node) Result() (cleisthenes.Binary, bool) { return n.bba.Result() } - -func (n *Node) Trace() { - n.bba.Trace() -} diff --git a/test/bba/simulation_test.go b/test/bba/simulation_test.go index bd702bb..5912912 100644 --- a/test/bba/simulation_test.go +++ b/test/bba/simulation_test.go @@ -174,17 +174,6 @@ func watchResult(nodeList []*bba.Node) *simulationResult { addr: node.Info(), value: result}) } } - - time.Sleep(1 * time.Second) - iLogger.Info(nil, "sleep ...") - iLogger.Info(nil, "========================trace====================") - for _, node := range nodeList { - iLogger.Info(nil, "------------------------") - iLogger.Info(nil, node.Info().String()) - iLogger.Info(nil, "------------------------") - node.Trace() - } - if len(simulationResult.outputList) == len(nodeList) { break } diff --git a/test/rbc/rbc_test.go b/test/rbc/rbc_test.go index 1602a0b..a6a4a66 100644 --- a/test/rbc/rbc_test.go +++ b/test/rbc/rbc_test.go @@ -8,6 +8,8 @@ import ( "testing" "time" + "github.com/DE-labtory/iLogger" + "github.com/DE-labtory/cleisthenes/test/util" "github.com/DE-labtory/cleisthenes" @@ -72,6 +74,8 @@ func RBCTest(proposer *Node, nodeList []*Node, data []byte) error { if value := node.Value(proposer.address); value != nil { if !bytes.Equal(value, data) { return errors.New(fmt.Sprintf("node : %s fail to reach an agreement - expected : %s, got : %s\n", node.address.String(), data, value)) + } else { + iLogger.Infof(nil, "node : %s success to reach an agreement", node.address.String()) } doneCnt++ break