From 3ae4aeea47e1962f13b95bb08d6212b3ef6d86bd Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Fri, 17 Jun 2022 14:01:49 -0400 Subject: [PATCH 1/3] Search for longer prefix of sd_hash to give better chance of unique results. --- tests/integration/claims/test_claim_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/claims/test_claim_commands.py b/tests/integration/claims/test_claim_commands.py index 9fa239a42..9edb5da92 100644 --- a/tests/integration/claims/test_claim_commands.py +++ b/tests/integration/claims/test_claim_commands.py @@ -208,7 +208,7 @@ class ClaimSearchCommand(ClaimTestCase): # resolve by sd hash two_sd_hash = two['outputs'][0]['value']['source']['sd_hash'] await self.assertFindsClaims([two], sd_hash=two_sd_hash) - await self.assertFindsClaims([two], sd_hash=two_sd_hash[:2]) + await self.assertFindsClaims([two], sd_hash=two_sd_hash[:4]) async def test_source_filter(self): channel = await self.channel_create('@abc') From 7049629ad7e579b6e60c4cc7f4bef6e6ec72d02e Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Thu, 16 Jun 2022 14:08:16 -0400 Subject: [PATCH 2/3] Relax range in test_exchange_rate_manager.py. --- tests/integration/other/test_exchange_rate_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/other/test_exchange_rate_manager.py b/tests/integration/other/test_exchange_rate_manager.py index 914477300..7a489c390 100644 --- a/tests/integration/other/test_exchange_rate_manager.py +++ b/tests/integration/other/test_exchange_rate_manager.py @@ -24,7 +24,7 @@ class TestExchangeRateManager(AsyncioTestCase): self.assertLessEqual(len(failures), 1, f"feed failures: {failures}. Please check exchange rate feeds!") lbc = manager.convert_currency('USD', 'LBC', Decimal('1.0')) self.assertGreaterEqual(lbc, 2.0) - self.assertLessEqual(lbc, 80.0) + self.assertLessEqual(lbc, 100.0) lbc = manager.convert_currency('BTC', 'LBC', Decimal('0.01')) self.assertGreaterEqual(lbc, 1_000) self.assertLessEqual(lbc, 30_000) From ba9ac489c3876b3e77d02f9867496a21d04e377b Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Sun, 19 Jun 2022 08:04:31 -0400 Subject: [PATCH 3/3] Relax range in test_exchange_rate_manager.py. (again) --- tests/integration/other/test_exchange_rate_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/other/test_exchange_rate_manager.py b/tests/integration/other/test_exchange_rate_manager.py index 7a489c390..2d2eb02c9 100644 --- a/tests/integration/other/test_exchange_rate_manager.py +++ b/tests/integration/other/test_exchange_rate_manager.py @@ -24,7 +24,7 @@ class TestExchangeRateManager(AsyncioTestCase): self.assertLessEqual(len(failures), 1, f"feed failures: {failures}. Please check exchange rate feeds!") lbc = manager.convert_currency('USD', 'LBC', Decimal('1.0')) self.assertGreaterEqual(lbc, 2.0) - self.assertLessEqual(lbc, 100.0) + self.assertLessEqual(lbc, 120.0) lbc = manager.convert_currency('BTC', 'LBC', Decimal('0.01')) self.assertGreaterEqual(lbc, 1_000) self.assertLessEqual(lbc, 30_000)