Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit adaa7ed

Browse files
committed
do not try to stop server if it has been already stopped
1 parent 45588e1 commit adaa7ed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
setup(
33
name = 'testgres',
44
packages = ['testgres'],
5-
version = '0.1.5',
5+
version = '0.1.6',
66
description = 'Testing utility for postgresql and it''s extensions',
77
author = 'Ildar Musin',
88
author_email = 'zildermann@gmail.com',

testgres/testgres.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,6 @@ def clean_all():
372372
def stop_all():
373373
global registered_nodes
374374
for node in registered_nodes:
375-
node.stop()
375+
# stop server if it still working
376+
if self.working:
377+
node.stop()

0 commit comments

Comments
 (0)