From ab7f2a350546e06fec34e08f818f5dd154ef231f Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 18 Nov 2022 15:36:45 +0100 Subject: [PATCH] compatibility with latest LC test format `state.ssz_snappy` file was renamed to `object.ssz_snappy` and `pyspec_tests` folder was renamed to `BeaconState` as part of https://github.com/ethereum/consensus-specs/pull/3066 --- .../test_fixture_light_client_single_merkle_proof.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/consensus_spec/test_fixture_light_client_single_merkle_proof.nim b/tests/consensus_spec/test_fixture_light_client_single_merkle_proof.nim index 2fbe6cd612..6d563d1706 100644 --- a/tests/consensus_spec/test_fixture_light_client_single_merkle_proof.nim +++ b/tests/consensus_spec/test_fixture_light_client_single_merkle_proof.nim @@ -41,7 +41,7 @@ proc runTest(path: string, fork: BeaconStateFork) = yaml.load(s, res) res - state = loadForkedState(path/"state.ssz_snappy", fork) + state = loadForkedState(path/"object.ssz_snappy", fork) withState(state[]): var computedProof = newSeq[Eth2Digest](log2trunc(proof.leaf_index)) @@ -65,6 +65,6 @@ suite "EF - Light client - Single merkle proof" & preset(): let fork = forkForPathComponent(path).valueOr: raiseAssert "Unknown test fork: " & testsPath - basePath = testsPath/"pyspec_tests" + basePath = testsPath/"BeaconState" for kind, path in walkDir(basePath, relative = true, checkDir = true): runTest(basePath/path, fork)