(t *testing.T, instance *rnode.Rnode, amount int)
| 506 | } |
| 507 | |
| 508 | func checkRNodeNum(t *testing.T, instance *rnode.Rnode, amount int) { |
| 509 | num, err := instance.GetRnodeNum(nil) |
| 510 | checkError(t, "get rnodes num", err) |
| 511 | |
| 512 | if num.Cmp(new(big.Int).SetInt64(int64(amount))) != 0 { |
| 513 | t.Errorf("rnode'num %d != %d", num, amount) |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | func checkEnabled(t *testing.T, instance *rnode.Rnode, expect bool) { |
| 518 | enabled, err := instance.Enabled(nil) |
no test coverage detected