Skip to content

Commit 889392e

Browse files
author
James William Pye
committed
Add test for silent_mode.
1 parent a9bea2a commit 889392e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

postgresql/test/test_cluster.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def tearDown(self):
2525

2626
def start_cluster(self):
2727
self.cluster.start(logfile = None)
28-
self.cluster.wait_until_started(timeout = 30)
28+
self.cluster.wait_until_started(timeout = 10)
2929

3030
def init(self, *args, **kw):
3131
self.cluster.init(*args, **kw)
@@ -36,6 +36,12 @@ def init(self, *args, **kw):
3636
'silent_mode' : 'off',
3737
})
3838

39+
def testSilentMode(self):
40+
self.init(logfile = None)
41+
self.cluster.settings['silent_mode'] = 'on'
42+
# if it fails to start(ClusterError), silent_mode is not working properly.
43+
self.start_cluster()
44+
3945
def testSuperPassword(self):
4046
self.init(
4147
user = 'test',

0 commit comments

Comments
 (0)