Move online status to REST client (#9808)

This commit is contained in:
Klaus Post
2020-06-16 18:59:32 -07:00
committed by GitHub
parent 216de230e2
commit 3ba4804d6c
5 changed files with 91 additions and 57 deletions

View File

@@ -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")
}