fixed broken test

This commit is contained in:
Kevin Froman 2018-02-27 18:18:48 -06:00
parent fc5d702706
commit 32b8d9c1a7
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -121,6 +121,8 @@ class OnionrTests(unittest.TestCase):
logger.info('Running address add+remove test') logger.info('Running address add+remove test')
import core import core
myCore = core.Core() myCore = core.Core()
if not os.path.exists('data/address.db'):
myCore.createAddressDB()
if myCore.addAddress('facebookcorewwwi.onion') and not myCore.removeAddress('invalid'): if myCore.addAddress('facebookcorewwwi.onion') and not myCore.removeAddress('invalid'):
if myCore.removeAddress('facebookcorewwwi.onion'): if myCore.removeAddress('facebookcorewwwi.onion'):
self.assertTrue(True) self.assertTrue(True)