mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-18617 resmoke.py should not error when tearing down fixtures which had not been set up
This commit is contained in:
parent
15191a46c7
commit
c69ae21c3a
@ -312,7 +312,7 @@ class _MongoSFixture(interface.Fixture):
|
||||
running_at_start = self.is_running()
|
||||
success = True # Still a success even if nothing is running.
|
||||
|
||||
if not running_at_start:
|
||||
if not running_at_start and self.port is not None:
|
||||
self.logger.info("mongos on port %d was expected to be running in teardown(), but"
|
||||
" wasn't." % (self.port))
|
||||
|
||||
|
@ -119,7 +119,7 @@ class MongoDFixture(interface.Fixture):
|
||||
running_at_start = self.is_running()
|
||||
success = True # Still a success even if nothing is running.
|
||||
|
||||
if not running_at_start:
|
||||
if not running_at_start and self.port is not None:
|
||||
self.logger.info("mongod on port %d was expected to be running in teardown(), but"
|
||||
" wasn't." % (self.port))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user