mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
Move online status to REST client (#9808)
This commit is contained in:
@@ -29,7 +29,7 @@ func TestLockRESTlient(t *testing.T) {
|
||||
t.Fatalf("unexpected error %v", err)
|
||||
}
|
||||
lkClient := newlockRESTClient(endpoint)
|
||||
if lkClient.connected == 0 {
|
||||
if !lkClient.IsOnline() {
|
||||
t.Fatalf("unexpected error. connection failed")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user