(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func setupTwoNodeHarness(t *testing.T) (*VirtualHarness, chan error) { |
| 26 | t.Helper() |
| 27 | vh := &VirtualHarness{} |
| 28 | a1 := "192.168.50.1:1234" |
| 29 | vh.NewNode("a", "10.0.0.1/32") |
| 30 | b1 := "192.168.50.2:1234" |
| 31 | b2 := "192.168.50.3:1234" |
| 32 | vh.NewNode("b", "10.0.0.2/32") |
| 33 | vh.Central.Graph = []string{"a, b"} |
| 34 | vh.Endpoints = map[string]state.NodeId{a1: "a", b1: "b", b2: "b"} |
| 35 | vh.AddLink(a1, b1) |
| 36 | vh.AddLink(b1, a1) |
| 37 | vh.AddLink(a1, b2) |
| 38 | vh.AddLink(b2, a1) |
| 39 | errs := vh.Start() |
| 40 | return vh, errs |
| 41 | } |
| 42 | |
| 43 | func ipcCall(t *testing.T, n *core.Nylon, req *protocol.IpcRequest) *protocol.IpcResponse { |
| 44 | t.Helper() |
no test coverage detected