You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jl...@apache.org on 2015/09/26 22:25:49 UTC
ambari git commit: AMBARI-13249: Fix unit test failure in trunk
(jluniya)
Repository: ambari
Updated Branches:
refs/heads/trunk 94baa2f02 -> bb1491f07
AMBARI-13249: Fix unit test failure in trunk (jluniya)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bb1491f0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bb1491f0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bb1491f0
Branch: refs/heads/trunk
Commit: bb1491f073fd011b91dd58225ff8513923e2629d
Parents: 94baa2f
Author: Jayush Luniya <jl...@hortonworks.com>
Authored: Sat Sep 26 13:25:42 2015 -0700
Committer: Jayush Luniya <jl...@hortonworks.com>
Committed: Sat Sep 26 13:25:42 2015 -0700
----------------------------------------------------------------------
ambari-server/src/test/python/TestAmbariServer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/bb1491f0/ambari-server/src/test/python/TestAmbariServer.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/TestAmbariServer.py b/ambari-server/src/test/python/TestAmbariServer.py
index d4a1450..056dac8 100644
--- a/ambari-server/src/test/python/TestAmbariServer.py
+++ b/ambari-server/src/test/python/TestAmbariServer.py
@@ -2911,7 +2911,7 @@ class TestAmbariServer(TestCase):
@patch("ambari_server.dbConfiguration_linux.run_os_command")
def test_get_postgre_status(self, run_os_command_mock):
- run_os_command_mock.return_value = (1, "running", None)
+ run_os_command_mock.return_value = (0, "running", None)
pg_status, retcode, out, err = PGConfig._get_postgre_status()
self.assertEqual("running", pg_status)