fix some of the tests
This commit is contained in:
parent
9c269c90bb
commit
c1c9c2883a
2 changed files with 5 additions and 4 deletions
|
@ -356,7 +356,8 @@ class BlockchainSync(Sync):
|
|||
|
||||
async def sync_trends(self):
|
||||
ending_height = await self.chain.db.get_best_height()
|
||||
await self.db.run(trending.calculate_trending, ending_height)
|
||||
if ending_height is not None:
|
||||
await self.db.run(trending.calculate_trending, ending_height)
|
||||
|
||||
async def sync_claim_filtering(self):
|
||||
await self.db.run(
|
||||
|
|
|
@ -293,8 +293,8 @@ class SyncingBlockchainTestCase(BasicBlockchainTestCase):
|
|||
|
||||
async def state(self, controlling=None, active=None, accepted=None):
|
||||
self.assertEqual(controlling, await self.get_controlling())
|
||||
self.assertEqual(active or [], await self.get_active())
|
||||
self.assertEqual(accepted or [], await self.get_accepted())
|
||||
self.assertListEqual(active or [], await self.get_active())
|
||||
self.assertListEqual(accepted or [], await self.get_accepted())
|
||||
|
||||
|
||||
class TestLbrycrdAPIs(AsyncioTestCase):
|
||||
|
@ -832,7 +832,7 @@ class TestGeneralBlockchainSync(SyncingBlockchainTestCase):
|
|||
if support_channel is not None:
|
||||
r, = await self.db.search_supports()
|
||||
self.assertEqual(r.meta['is_signature_valid'], support_valid)
|
||||
self.assertEqual(r.SUPPORT.signing_channel_id, support_channel.claim_id)
|
||||
self.assertEqual(r.support.signing_channel_id, support_channel.claim_id)
|
||||
|
||||
async def test_claim_and_support_signing(self):
|
||||
search = self.db.search_claims
|
||||
|
|
Loading…
Add table
Reference in a new issue