Browse Source

Fixed keva functional test case.

cn_mining
Jianping Wu 6 years ago
parent
commit
d8329bd28b
  1. 10
      test/functional/feature_keva.py

10
test/functional/feature_keva.py

@ -63,16 +63,6 @@ class KevaTest(BitcoinTestFramework):
self.sync_all() self.sync_all()
response = self.nodes[0].keva_get(namespaceId, key) response = self.nodes[0].keva_get(namespaceId, key)
assert(response['value'] == value1) assert(response['value'] == value1)
# Disconnect the block again
self.sync_all()
tip = self.nodes[0].getbestblockhash()
self.nodes[0].invalidateblock(tip)
self.nodes[1].invalidateblock(tip)
self.sync_all()
response = self.nodes[0].keva_get(namespaceId, key)
assert(response['value'] == '')
response = self.nodes[0].keva_get(namespaceId, '_KEVA_NS_')
assert(response['value'] == displayName)
self.log.info("Test undeleting after disconnecting blocks") self.log.info("Test undeleting after disconnecting blocks")
self.nodes[0].generate(1) self.nodes[0].generate(1)

Loading…
Cancel
Save