(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func TestClusterClient_RoutingTable_Cluster(t *testing.T) { |
| 85 | cluster := newTestOlricCluster(t) |
| 86 | cluster.addMember(t) // Cluster coordinator |
| 87 | <-time.After(250 * time.Millisecond) |
| 88 | |
| 89 | db := cluster.addMember(t) |
| 90 | |
| 91 | ctx := context.Background() |
| 92 | c, err := NewClusterClient([]string{db.name}) |
| 93 | require.NoError(t, err) |
| 94 | defer func() { |
| 95 | require.NoError(t, c.Close(ctx)) |
| 96 | }() |
| 97 | |
| 98 | rt, err := c.RoutingTable(ctx) |
| 99 | require.NoError(t, err) |
| 100 | |
| 101 | require.Len(t, rt, int(db.config.PartitionCount)) |
| 102 | } |
| 103 | |
| 104 | func TestClusterClient_Put(t *testing.T) { |
| 105 | cluster := newTestOlricCluster(t) |
nothing calls this directly
no test coverage detected