Skip to content
Snippets Groups Projects
Commit 54ed1c60 authored by Holger's avatar Holger
Browse files

Fix unit test

parent 265afae7
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
...@@ -49,7 +49,7 @@ class Testcases(unittest.TestCase): ...@@ -49,7 +49,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.assertTrue((num - block.identifier) < 3) self.assertTrue(num <= block.identifier)
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