(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestSuccessorSingle(t *testing.T) { |
| 42 | n, err := defaultTestNode() |
| 43 | if err != nil { |
| 44 | t.Fatalf("defaultTestNode() failed: %v", err) |
| 45 | } |
| 46 | |
| 47 | // Get the successor and assert it is itself. |
| 48 | s := n.ring.successor(n.name) |
| 49 | if s != n.name { |
| 50 | t.Errorf("successor() returned %v; want %v", s, n.name) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func TestSuccessorValid(t *testing.T) { |
| 55 | nodes, err := connectedTestNodes(2, 1) |
nothing calls this directly
no test coverage detected