fixes bc and gst tester [skip ci]

This commit is contained in:
andri lim 2019-11-14 22:37:58 +07:00
parent d61bb49a40
commit dda26611c2
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 5 additions and 5 deletions

View File

@ -434,7 +434,7 @@ proc validateUncles(chainDB: BaseChainDB, currBlock: PlainBlock, checkSeal: bool
raise newException(ValidationError, "Header suggests block should have uncles but block has none")
# Check for duplicates
var uncleSet = initSet[Hash256]()
var uncleSet = initHashSet[Hash256]()
for uncle in currBlock.uncles:
let uncleHash = uncle.hash
if uncleHash in uncleSet:
@ -668,7 +668,7 @@ proc main() =
suite "block chain json tests":
jsonTest("BlockchainTests", testFixture)
suite "new block chain json tests":
jsonTest("NewBlockchainTests", testFixture)
jsonTest("newBlockchainTests", testFixture)
else:
# execute single test in debug mode
let config = getConfiguration()
@ -676,7 +676,7 @@ proc main() =
echo "missing test subject"
quit(QuitFailure)
let path = "tests" / "fixtures" / "NewBlockChainTests"
let path = "tests" / "fixtures" / "newBlockChainTests"
let n = json.parseFile(path / config.testSubject)
var testStatusIMPL: TestStatus
testFixture(n, testStatusIMPL, debugMode = true, config.trace)

View File

@ -177,7 +177,7 @@ proc generalStateJsonMain*(debugMode = false) =
suite "generalstate json tests":
jsonTest("GeneralStateTests", testFixture)
suite "new generalstate json tests":
jsonTest("NewGeneralStateTests", testFixture)
jsonTest("newGeneralStateTests", testFixture)
else:
# execute single test in debug mode
let config = getConfiguration()
@ -185,7 +185,7 @@ proc generalStateJsonMain*(debugMode = false) =
echo "missing test subject"
quit(QuitFailure)
let path = "tests" / "fixtures" / "GeneralStateTests"
let path = "tests" / "fixtures" / "newGeneralStateTests"
let n = json.parseFile(path / config.testSubject)
var testStatusIMPL: TestStatus
var forks: set[Fork] = {}