aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMinghao Li <minghaoli@google.com>2022-05-06 11:34:18 +0800
committerGitHub <noreply@github.com>2022-05-05 20:34:18 -0700
commit14dd71730d8823ad921e3f11d03b0e51644e972c (patch)
treef6e835092bcd9482adb621299fd8624fa60f565b /tests
parent225f609f5a952a115768ef5866ac211c419f7007 (diff)
downloadmobly-14dd71730d8823ad921e3f11d03b0e51644e972c.tar.gz
ClientBase should call "stop" if "before_starting_server" failed (#813)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mobly/snippet/client_base_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mobly/snippet/client_base_test.py b/tests/mobly/snippet/client_base_test.py
index d9d99bd..e0bc4f1 100755
--- a/tests/mobly/snippet/client_base_test.py
+++ b/tests/mobly/snippet/client_base_test.py
@@ -128,7 +128,7 @@ class ClientBaseTest(unittest.TestCase):
with self.assertRaisesRegex(Exception, 'ha'):
self.client.initialize()
- mock_stop_func.assert_not_called()
+ mock_stop_func.assert_called()
@mock.patch.object(FakeClient, 'stop')
@mock.patch.object(FakeClient, 'start_server')