Skip to content

Commit

Permalink
fixup! test: increase the overall testrun timeout for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPiechota committed Jan 31, 2025
1 parent 314a750 commit a4fb08a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
18 changes: 11 additions & 7 deletions apps/arweave/e2e/ar_e2e.erl
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,17 @@ start_source_node(Node, unpacked, _WalletFixture) ->
}, true),

?LOG_INFO("Source node ~p started.", [Node]),


ar_e2e:assert_syncs_range(Node, 0, 4*?PARTITION_SIZE),

ar_e2e:assert_partition_size(Node, 0, unpacked),
ar_e2e:assert_partition_size(Node, 1, unpacked),
ar_e2e:assert_partition_size(Node, 2, unpacked, floor(0.5*?PARTITION_SIZE)),
ar_e2e:assert_empty_partition(Node, 3, unpacked),

ar_e2e:assert_syncs_range(Node, 0, 4*?PARTITION_SIZE),
ar_e2e:assert_chunks(Node, unpacked, Chunks),

ar_e2e:assert_empty_partition(Node, 3, unpacked),

?LOG_INFO("Source node ~p assertions passed.", [Node]),

ar_test_node:stop(TempNode),
Expand Down Expand Up @@ -148,14 +150,16 @@ start_source_node(Node, PackingType, WalletFixture) ->

SourcePacking = ar_e2e:packing_type_to_packing(PackingType, RewardAddr),

ar_e2e:assert_syncs_range(Node, 0, 4*?PARTITION_SIZE),

ar_e2e:assert_partition_size(Node, 0, SourcePacking),
ar_e2e:assert_partition_size(Node, 1, SourcePacking),
ar_e2e:assert_partition_size(Node, 2, SourcePacking, floor(0.5*?PARTITION_SIZE)),
ar_e2e:assert_empty_partition(Node, 3, SourcePacking),

ar_e2e:assert_syncs_range(Node, 0, 4*?PARTITION_SIZE),

ar_e2e:assert_chunks(Node, SourcePacking, Chunks),

ar_e2e:assert_empty_partition(Node, 3, SourcePacking),

?LOG_INFO("Source node ~p assertions passed.", [Node]),

{[B0, B1, B2, B3, B4, B5], RewardAddr, Chunks}.
Expand Down Expand Up @@ -290,7 +294,7 @@ assert_partition_size(Node, PartitionNumber, Packing, Size) ->
[PartitionNumber, Packing]) >= Size
end,
100,
60_000
120_000
),
iolist_to_binary(io_lib:format(
"~s partition ~p,~p failed to reach size ~p. Current size: ~p.",
Expand Down
4 changes: 2 additions & 2 deletions apps/arweave/e2e/ar_repack_mine_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ test_repack_mine({FromPackingType, ToPackingType}) ->
ar_e2e:assert_partition_size(RepackerNode, 0, ToPacking),
ar_e2e:assert_partition_size(RepackerNode, 1, ToPacking),
ar_e2e:assert_partition_size(RepackerNode, 2, ToPacking, floor(0.5*?PARTITION_SIZE)),
ar_e2e:assert_empty_partition(RepackerNode, 3, ToPacking),
ar_e2e:assert_chunks(RepackerNode, ToPacking, Chunks),
ar_e2e:assert_empty_partition(RepackerNode, 3, ToPacking),

ar_test_node:restart_with_config(RepackerNode, Config#config{
storage_modules = StorageModules,
Expand All @@ -72,8 +72,8 @@ test_repack_mine({FromPackingType, ToPackingType}) ->
ar_e2e:assert_partition_size(RepackerNode, 0, ToPacking),
ar_e2e:assert_partition_size(RepackerNode, 1, ToPacking),
ar_e2e:assert_partition_size(RepackerNode, 2, ToPacking, floor(0.5*?PARTITION_SIZE)),
ar_e2e:assert_empty_partition(RepackerNode, 3, ToPacking),
ar_e2e:assert_chunks(RepackerNode, ToPacking, Chunks),
ar_e2e:assert_empty_partition(RepackerNode, 3, ToPacking),

case ToPackingType of
unpacked ->
Expand Down

0 comments on commit a4fb08a

Please sign in to comment.