Skip to content
Snippets Groups Projects
Commit 1a144737 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

Make unit test more robust

parent 633ea1ee
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ class Testcases(unittest.TestCase): ...@@ -60,7 +60,7 @@ class Testcases(unittest.TestCase):
self.assertTrue(isinstance(num, int)) self.assertTrue(isinstance(num, int))
block = b.get_current_block() block = b.get_current_block()
self.assertTrue(isinstance(block, Block)) self.assertTrue(isinstance(block, Block))
self.assertEqual(num, block.identifier) self.assertTrue((num - block.identifier) < 2)
block_time = b.block_time(block.identifier) block_time = b.block_time(block.identifier)
self.assertEqual(block.time(), block_time) self.assertEqual(block.time(), block_time)
block_timestamp = b.block_timestamp(block.identifier) block_timestamp = b.block_timestamp(block.identifier)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment