Skip to content

Commit f638a09

Browse files
committed
Update test_service_getblock_parse_tx_paging unittest
1 parent 3686750 commit f638a09

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tests/test_services.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -694,11 +694,10 @@ def test_service_getblock_height(self):
694694
# self.assertEqual(t1.outputs[1].value, 8638768306)
695695

696696
def test_service_getblock_parse_tx_paging(self):
697-
srv = ServiceTest(timeout=TIMEOUT_TEST, cache_uri='')
698-
try:
699-
b = srv.getblock(120000, parse_transactions=True, limit=25, page=2)
700-
except ServiceError as e:
701-
self.skipTest(f"Skipping test_service_getblock_parse_tx_paging: {e}")
697+
srv = ServiceTest(timeout=1, cache_uri='')
698+
b = srv.getblock(120000, parse_transactions=True, limit=25, page=2)
699+
if not b:
700+
self.skipTest(f"Skipping test_service_getblock_parse_tx_paging")
702701
print("Test getblock using provider %s" % list(srv.results.keys())[0])
703702
self.assertEqual(to_hexstring(b.block_hash),
704703
'0000000000000e07595fca57b37fea8522e95e0f6891779cfd34d7e537524471')

0 commit comments

Comments
 (0)