mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
allow nodes offline in k8s setups when expanding pools (#17183)
This commit is contained in:
@@ -314,7 +314,7 @@ func TestCreateEndpoints(t *testing.T) {
|
||||
for _, testCase := range testCases {
|
||||
testCase := testCase
|
||||
t.Run("", func(t *testing.T) {
|
||||
endpoints, setupType, err := CreateEndpoints(testCase.serverAddr, false, testCase.args...)
|
||||
endpoints, setupType, err := CreateEndpoints(testCase.serverAddr, testCase.args...)
|
||||
if err == nil && testCase.expectedErr != nil {
|
||||
t.Errorf("error: expected = %v, got = <nil>", testCase.expectedErr)
|
||||
}
|
||||
@@ -374,7 +374,7 @@ func TestGetLocalPeer(t *testing.T) {
|
||||
for i, testCase := range testCases {
|
||||
zendpoints := mustGetPoolEndpoints(testCase.endpointArgs...)
|
||||
if !zendpoints[0].Endpoints[0].IsLocal {
|
||||
if err := zendpoints[0].Endpoints.UpdateIsLocal(false); err != nil {
|
||||
if err := zendpoints[0].Endpoints.UpdateIsLocal(); err != nil {
|
||||
t.Fatalf("error: expected = <nil>, got = %v", err)
|
||||
}
|
||||
}
|
||||
@@ -407,7 +407,7 @@ func TestGetRemotePeers(t *testing.T) {
|
||||
for _, testCase := range testCases {
|
||||
zendpoints := mustGetPoolEndpoints(testCase.endpointArgs...)
|
||||
if !zendpoints[0].Endpoints[0].IsLocal {
|
||||
if err := zendpoints[0].Endpoints.UpdateIsLocal(false); err != nil {
|
||||
if err := zendpoints[0].Endpoints.UpdateIsLocal(); err != nil {
|
||||
t.Errorf("error: expected = <nil>, got = %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user