From c8c738e2c771960d102c2d12defcd8dd702d8b70 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 27 Feb 2024 13:53:15 +0200 Subject: [PATCH] Do not use test suite if it does not have post-state. --- tests/test_block_rewards.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_block_rewards.nim b/tests/test_block_rewards.nim index c233e6d6e..b08fa7793 100644 --- a/tests/test_block_rewards.nim +++ b/tests/test_block_rewards.nim @@ -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