Skip to content

Commit

Permalink
Fix issue in unittest if provider blockcount is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed May 14, 2024
1 parent 1393e97 commit fc3a0ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,10 @@ def test_service_transaction_unconfirmed(self):
def test_service_exlude_providers(self):
srv = ServiceTest(network='testnet', cache_uri='')
providers = [srv.providers[pi]['provider'] for pi in srv.providers]
srv2 = ServiceTest(network='testnet', exclude_providers=providers[1:], cache_uri='')
try:
srv2 = ServiceTest(network='testnet', exclude_providers=providers[1:], cache_uri='')
except ServiceError:
self.skipTest("Blockcount for provider %s was not successful" % providers[0])
self.assertEqual(len(srv2.providers), 1)


Expand Down

0 comments on commit fc3a0ab

Please sign in to comment.