From f29cbebb9d1b923f0105581aa23410130da09add Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Tue, 5 Jul 2022 16:14:52 +0200 Subject: [PATCH] Move block data test files to one location (#1154) --- fluffy/scripts/test_portal_testnet.nim | 2 +- .../test_data => tests/blocks}/mainnet_blocks_selected.json | 0 fluffy/tests/test_history_validation.nim | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename fluffy/{scripts/test_data => tests/blocks}/mainnet_blocks_selected.json (100%) diff --git a/fluffy/scripts/test_portal_testnet.nim b/fluffy/scripts/test_portal_testnet.nim index 90d34f22b..e705e1173 100644 --- a/fluffy/scripts/test_portal_testnet.nim +++ b/fluffy/scripts/test_portal_testnet.nim @@ -182,7 +182,7 @@ procSuite "Portal testnet tests": await client.close() nodeInfos.add(nodeInfo) - const dataFile = "./fluffy/scripts/test_data/mainnet_blocks_selected.json" + const dataFile = "./fluffy/tests/blocks/mainnet_blocks_selected.json" # This will fill the first node its db with blocks from the data file. Next, # this node wil offer all these blocks their headers one by one. check (await clients[0].portal_history_propagate(dataFile)) diff --git a/fluffy/scripts/test_data/mainnet_blocks_selected.json b/fluffy/tests/blocks/mainnet_blocks_selected.json similarity index 100% rename from fluffy/scripts/test_data/mainnet_blocks_selected.json rename to fluffy/tests/blocks/mainnet_blocks_selected.json diff --git a/fluffy/tests/test_history_validation.nim b/fluffy/tests/test_history_validation.nim index 5a11237c3..d80952399 100644 --- a/fluffy/tests/test_history_validation.nim +++ b/fluffy/tests/test_history_validation.nim @@ -18,7 +18,7 @@ import ../network/history/history_network const - dataFile = "./fluffy/scripts/test_data/mainnet_blocks_selected.json" + dataFile = "./fluffy/tests/blocks/mainnet_blocks_selected.json" # Block that will be validated blockHashStr = "0xce8f770a56203e10afe19c7dd7e2deafc356e6cce0a560a30a85add03da56137"