Skip to content

Commit

Permalink
VRF-1066: VRF e2e tests - parametrize waiting for 256 block timeout (#…
Browse files Browse the repository at this point in the history
…13197)

* VRF-1066: VRF e2e tests - parametrize waiting for 256 block timeout

* VRF-1066: minor changes
  • Loading branch information
iljapavlovs authored May 20, 2024
1 parent 50569f7 commit dfc399d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion integration-tests/load/vrfv2/vrfv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func TestVRFV2BHSPerformance(t *testing.T) {
latestBlockNumber, err := sethClient.Client.BlockNumber(testcontext.Get(t))
require.NoError(t, err)
_, err = actions.WaitForBlockNumberToBe(
latestBlockNumber+uint64(256),
latestBlockNumber+uint64(257),
sethClient,
&wgBlockNumberTobe,
configCopy.VRFv2.General.WaitFor256BlocksTimeout.Duration,
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/load/vrfv2plus/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func TestVRFV2PlusBHSPerformance(t *testing.T) {
latestBlockNumber, err := sethClient.Client.BlockNumber(testcontext.Get(t))
require.NoError(t, err, "error getting latest block number")
_, err = actions.WaitForBlockNumberToBe(
latestBlockNumber+uint64(256),
latestBlockNumber+uint64(257),
sethClient,
&wgBlockNumberTobe,
configCopy.VRFv2Plus.General.WaitFor256BlocksTimeout.Duration,
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/smoke/vrfv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ func TestVRFV2WithBHS(t *testing.T) {
randRequestBlockNumber+uint64(257),
sethClient,
&wg,
time.Second*260,
configCopy.VRFv2.General.WaitFor256BlocksTimeout.Duration,
t,
l,
)
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/smoke/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ func TestVRFV2PlusWithBHS(t *testing.T) {
randRequestBlockNumber+uint64(257),
sethClient,
&wg,
time.Second*260,
configCopy.VRFv2Plus.General.WaitFor256BlocksTimeout.Duration,
t,
l,
)
Expand Down Expand Up @@ -1564,12 +1564,12 @@ func TestVRFV2PlusWithBHF(t *testing.T) {
randRequestBlockNumber := randomWordsRequestedEvent.Raw.BlockNumber
var wg sync.WaitGroup
wg.Add(1)
//Wait at least 260 blocks
//Wait at least 256 blocks
_, err = actions.WaitForBlockNumberToBe(
randRequestBlockNumber+uint64(260),
randRequestBlockNumber+uint64(257),
sethClient,
&wg,
time.Second*262,
configCopy.VRFv2Plus.General.WaitFor256BlocksTimeout.Duration,
t,
l,
)
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/testconfig/vrfv2/vrfv2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ number_of_sending_keys_to_create = 0
randomness_request_count_per_request = 1
randomness_request_count_per_request_deviation = 0
random_words_fulfilled_event_timeout = "2m"
wait_for_256_blocks_timeout = "10m"
wait_for_256_blocks_timeout = "280s"
wrapped_gas_overhead = 50000
coordinator_gas_overhead = 52000
wrapper_premium_percentage = 25
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/testconfig/vrfv2plus/vrfv2plus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ number_of_sending_keys_to_create = 0
randomness_request_count_per_request = 1
randomness_request_count_per_request_deviation = 0
random_words_fulfilled_event_timeout = "2m"
wait_for_256_blocks_timeout = "10m"
wait_for_256_blocks_timeout = "280s"

fulfillment_flat_fee_native_ppm=0
fulfillment_flat_fee_link_discount_ppm=0
Expand Down

0 comments on commit dfc399d

Please sign in to comment.