Skip to content

Commit

Permalink
amend pipeline and avro tests for new test data files
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Jun 10, 2024
1 parent 62d92ef commit a3a44e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/block_specimen_avro_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ defmodule Refiner.BlockSpecimenDecoderEncoderTest do
} do
dir_path = "./test-data/codec-0.37/encoded/*"

expected_start_block = 195_294_93
expected_last_block = 19_529_630
expected_start_block = 19_529_493
expected_last_block = 20_063_085

expected_start_hash = "0x313990d54795a7e251672161a5671a72bce4254e7f773cf86b309f772b548194"
expected_last_hash = "0x36354e6f5603ae907b1a1e38cfab9b937ff5efd0fe3651b95ea41b089871792d"
expected_last_hash = "0x0cfa8133a57504678b9003e1f6827ef5f394e41678a5336b6d4b6de4230596d9"

decode_specimen_stream = Refiner.Avro.BlockSpecimen.decode_dir(dir_path)

Expand Down
4 changes: 2 additions & 2 deletions test/pipeline_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Refiner.PipelineTest do
test "returns the cid and hash of the processed block hash", %{} do
# encoded specimen file: ./test-data/codec-0.37/encoded/1-20063085 (codec-0.37)
test_urls = ["ipfs://bafybeidpfxf7czfkeaiszdciyvaeahnqhop6flcssqf6s4udb7jolgciky"]
expected_block_result_cid = "bafybeib3xkzaxuldyiyadngetbd622wmj4zegwcnd4pl4unslqurxa4xi4"
expected_block_result_cid = "bafybeicenu7e7ahguyjund5lq24wvei6uhdsdc37sng5p762s56gyc3qkm"
test_block_specimen_hash = "0cfa8133a57504678b9003e1f6827ef5f394e41678a5336b6d4b6de4230596d9"
test_bsp_key = "1_1_1_" <> test_block_specimen_hash

Expand Down Expand Up @@ -34,7 +34,7 @@ defmodule Refiner.PipelineTest do
30_000 -> assert(false)
end

expected_block_result_cid = "bafybeicpsrm3h5g6st6k2vi5awwu55wzdtvgmailpod2e53leexsk2ptcy"
expected_block_result_cid = "bafybeig2bqbxhk42aznq6fap4ubbfg4zqcmdc27lb4iaymslcat56tayam"

expected_block_result_hash =
<<48, 29, 244, 136, 156, 152, 111, 196, 64, 170, 248, 64, 226, 153, 56, 140, 31, 209, 169,
Expand Down

0 comments on commit a3a44e3

Please sign in to comment.