mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 01:36:06 +00:00
Fix official tests path.
This commit is contained in:
parent
5123080905
commit
0f8dd374d9
@ -15,12 +15,12 @@ import
|
|||||||
./state_test_utils
|
./state_test_utils
|
||||||
|
|
||||||
const TestFolder = currentSourcePath.rsplit(DirSep, 1)[0]
|
const TestFolder = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||||
const TestsPath = "/fixtures/json_tests/state/sanity-check_default-config_100-vals-first_test.json"
|
const TestsPath = "fixtures" / "json_tests" / "state" / "sanity-check_default-config_100-vals-first_test.json"
|
||||||
|
|
||||||
suite "Official - State tests": # Initializing a beacon state from the deposits
|
suite "Official - State tests": # Initializing a beacon state from the deposits
|
||||||
var stateTests: StateTest
|
var stateTests: StateTest
|
||||||
test "Parsing the official state tests into Nimbus beacon types":
|
test "Parsing the official state tests into Nimbus beacon types":
|
||||||
stateTests = parseStateTests(TestFolder & TestsPath)
|
stateTests = parseStateTests(TestFolder / TestsPath)
|
||||||
doAssert $stateTests.test_cases[0].name == "test_empty_block_transition"
|
doAssert $stateTests.test_cases[0].name == "test_empty_block_transition"
|
||||||
var initialState: BeaconState
|
var initialState: BeaconState
|
||||||
test "Initializing from scratch a new beacon chain with the same constants and deposit configuration as official state":
|
test "Initializing from scratch a new beacon chain with the same constants and deposit configuration as official state":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user