forked from LBRYCommunity/lbry-sdk
test picking oldest when originals doesnt match
This commit is contained in:
parent
ca28de02d8
commit
2c6f763ef2
1 changed files with 6 additions and 0 deletions
|
@ -413,6 +413,12 @@ class ClaimSearchCommand(ClaimTestCase):
|
||||||
await self.stream_repost(repost_id, f'claim{i}', bid='0.001', channel_id=self.get_claim_id(channel)))
|
await self.stream_repost(repost_id, f'claim{i}', bid='0.001', channel_id=self.get_claim_id(channel)))
|
||||||
await match([first, second] + channels,
|
await match([first, second] + channels,
|
||||||
remove_duplicates=True, order_by=['^height'])
|
remove_duplicates=True, order_by=['^height'])
|
||||||
|
await match(list(reversed(channels)) + [second, first],
|
||||||
|
remove_duplicates=True, order_by=['height'])
|
||||||
|
# the original claims doesn't show up, so we pick the oldest reposts
|
||||||
|
await match([channels[0], claims[0], channels[1], claims[1]] + channels[2:],
|
||||||
|
height='>218',
|
||||||
|
remove_duplicates=True, order_by=['^height'])
|
||||||
|
|
||||||
async def test_limit_claims_per_channel_across_sorted_pages(self):
|
async def test_limit_claims_per_channel_across_sorted_pages(self):
|
||||||
await self.generate(10)
|
await self.generate(10)
|
||||||
|
|
Loading…
Reference in a new issue