From 0f8dd374d98a6f8f87f7711f718fbbab95906d49 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Fri, 12 Apr 2019 01:25:22 +0300 Subject: [PATCH] Fix official tests path. --- tests/official/test_fixture_state.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/official/test_fixture_state.nim b/tests/official/test_fixture_state.nim index 81ea51af8..1a51ae58b 100644 --- a/tests/official/test_fixture_state.nim +++ b/tests/official/test_fixture_state.nim @@ -15,12 +15,12 @@ import ./state_test_utils 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 var stateTests: StateTest 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" var initialState: BeaconState test "Initializing from scratch a new beacon chain with the same constants and deposit configuration as official state":