mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
adjust tests to include Cluster.ListenForJoins()
This commit is contained in:
parent
453bbc996c
commit
212628b220
2 changed files with 7 additions and 11 deletions
|
|
@ -308,17 +308,6 @@ func TestCluster_Resize(t *testing.T) {
|
|||
// TestTestCluster ensures that general cluster functionality works as expected.
|
||||
func TestCluster_ResizeStates(t *testing.T) {
|
||||
|
||||
/* test conditions:
|
||||
x- single node, no data, comes up in NORMAL with topology
|
||||
x- single node, in topology, comes up NORMAL
|
||||
x- single node, not in topology, raises error
|
||||
x- two node, no data, comes up in NORMAL, with topology
|
||||
x- two node, in topology, comes up NORMAL
|
||||
x- two node, STARTING, not in topology, raises error
|
||||
x- two node, NORMAL, not in topology, triggers resize
|
||||
x- resize of nodes with data moves data appropriately
|
||||
*/
|
||||
|
||||
t.Run("Single node, no data", func(t *testing.T) {
|
||||
tc := test.NewTestCluster(1)
|
||||
|
||||
|
|
|
|||
|
|
@ -255,6 +255,13 @@ func (t *TestCluster) Open() error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Start the listener on the coordinator.
|
||||
if len(t.Clusters) == 0 {
|
||||
return nil
|
||||
}
|
||||
t.Clusters[0].ListenForJoins()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue