mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
deee232d74
Summary: Mostly empty lines removed and added. A few bugfixes on excessive line splitting. Reviewed By: cooperlees Differential Revision: D8198776 fbshipit-source-id: 4361faf4a2b9347d57fb6e1342c494575f2beb67
24 lines
830 B
Python
24 lines
830 B
Python
#!/usr/bin/env python3
|
|
#
|
|
# Copyright (c) 2016-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
from .lib import edenclient, testcase
|
|
|
|
|
|
class HealthTest(testcase.EdenTestCase):
|
|
def test_is_healthy(self) -> None:
|
|
self.assertTrue(self.eden.is_healthy())
|
|
self.eden.shutdown()
|
|
self.assertFalse(self.eden.is_healthy())
|
|
|
|
def test_disconnected_daemon_is_not_healthy(self) -> None:
|
|
# Create a new edenfs instance that is never started, and make sure
|
|
# it is not healthy.
|
|
with edenclient.EdenFS() as client:
|
|
self.assertFalse(client.is_healthy())
|