@@ -26,12 +26,6 @@ def run(cmd, **kwargs):
26
26
if proc .returncode != 0 :
27
27
raise RuntimeError ('Process failed!' )
28
28
29
-
30
- def stop ():
31
- pid = Path ("server.pid" ).read_text ().strip ()
32
- os .kill (int (pid ), signal .SIGTERM )
33
- Path ("server.pid" ).unlink ()
34
-
35
29
class TestLaunch (unittest .TestCase ):
36
30
37
31
def test_launch_single (self ):
@@ -43,9 +37,7 @@ def test_launch_single(self):
43
37
proc .send ('q\n ' )
44
38
proc .wait ()
45
39
self .assertEqual (proc .exitstatus , 0 )
46
- # TODO: https://jira.mongodb.org/browse/PYTHON-5594
47
- # run('mongo-orchestration stop')
48
- stop ()
40
+ run ('mongo-orchestration stop' )
49
41
50
42
def test_launch_replica_set (self ):
51
43
if os .name != 'posix' :
@@ -56,9 +48,7 @@ def test_launch_replica_set(self):
56
48
proc .send ('q\n ' )
57
49
proc .wait ()
58
50
self .assertEqual (proc .exitstatus , 0 )
59
- # TODO: https://jira.mongodb.org/browse/PYTHON-5594
60
- # run('mongo-orchestration stop')
61
- stop ()
51
+ run ('mongo-orchestration stop' )
62
52
63
53
64
54
def test_launch_sharded (self ):
@@ -70,6 +60,4 @@ def test_launch_sharded(self):
70
60
proc .send ('q\n ' )
71
61
proc .wait ()
72
62
self .assertEqual (proc .exitstatus , 0 )
73
- # TODO: https://jira.mongodb.org/browse/PYTHON-5594
74
- # run('mongo-orchestration stop')
75
- stop ()
63
+ run ('mongo-orchestration stop' )
0 commit comments