Do not use test suite if it does not have post-state.
This commit is contained in:
parent
ac776926f1
commit
c8c738e2c7
|
@ -35,9 +35,10 @@ proc runTest(consensusFork: static ConsensusFork,
|
|||
testPath = testDir / path
|
||||
preState = newClone(parseTest(testPath / "pre.ssz_snappy",
|
||||
SSZ, consensusFork.BeaconState))
|
||||
postState = testPath / "post.ssz_snappy"
|
||||
blockPath = testPath / "blocks_0.ssz_snappy"
|
||||
|
||||
if not(fileExists(blockPath)):
|
||||
if not(fileExists(blockPath)) or not(fileExists(postState)):
|
||||
discard
|
||||
else:
|
||||
var
|
||||
|
|
Loading…
Reference in New Issue