(n int, f AcceptConn)
| 198 | } |
| 199 | |
| 200 | func setupEnvironment(n int, f AcceptConn) ([]*proto.Node, func(), error) { |
| 201 | nodes, err := createLocalNodes(10, n) |
| 202 | if err != nil { |
| 203 | return nil, nil, err |
| 204 | } |
| 205 | stop, err := setupServers(nodes, f) |
| 206 | if err != nil { |
| 207 | return nil, nil, err |
| 208 | } |
| 209 | return nodes, stop, nil |
| 210 | } |
| 211 | |
| 212 | func thisNode() *proto.Node { |
| 213 | if conf.GConf != nil { |
no test coverage detected