break the wallet server with chris45 test

This commit is contained in:
Jack Robison 2020-06-09 16:04:39 -04:00
parent 98565eb67c
commit 22540390e1
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -4,6 +4,7 @@ from lbry.testcase import CommandTestCase
class EpicAdventuresOfChris45(CommandTestCase): class EpicAdventuresOfChris45(CommandTestCase):
async def test_no_this_is_not_a_test_its_an_adventure(self): async def test_no_this_is_not_a_test_its_an_adventure(self):
# Chris45 is an avid user of LBRY and this is his story. It's fact and fiction # Chris45 is an avid user of LBRY and this is his story. It's fact and fiction
# and everything in between; it's also the setting of some record setting # and everything in between; it's also the setting of some record setting
# integration tests. # integration tests.
@ -194,3 +195,9 @@ class EpicAdventuresOfChris45(CommandTestCase):
}}, }},
await self.resolve(uri) await self.resolve(uri)
) )
# He closes and opens the wallet server databases to see how horribly they break
db = self.conductor.spv_node.server.db
db.close()
await db.open_for_serving()
# They didn't! (error would be AssertionError: 276 vs 266 (264 counts) on startup)