Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdogmcsteezy committed Sep 23, 2024
1 parent bbaaa12 commit 9138013
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connection_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,10 @@ func (cp *connectionProvider) getUpdatedEndpoints(ctx context.Context) map[uint6

if largestNewCluster != nil {
cp.clusterID = largestNewCluster.id
return largestNewCluster.endpoints
}

return largestNewCluster.endpoints
return nil
}

// Checks if the node connections need to be updated and updates them if necessary.
Expand Down
4 changes: 4 additions & 0 deletions connection_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ func TestGetSeedConn_FailSeedConnEmpty(t *testing.T) {

assert.Equal(t, errors.New("no seed connections found"), err)
}

func TestconnectToSeeds(t *testing.T) {
}

func TestUpdateClusterConns_NoNewClusterID(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
Expand Down

0 comments on commit 9138013

Please sign in to comment.