Skip to content

Commit

Permalink
fix(integration_tests): remove flake from produce_block__l1_committed…
Browse files Browse the repository at this point in the history
…_block_affects_gas_price (FuelLabs#2566)

## Linked Issues/PRs
<!-- List of related issues/PRs -->
closes FuelLabs#2562

## Description
<!-- List of detailed changes -->
- increases the sleep duration to allow for processing time of gas
prices

## Checklist
- [x] Breaking changes are clearly marked as such in the PR description
and changelog
- [x] New behavior is reflected in tests
- [x] [The specification](https://github.com/FuelLabs/fuel-specs/)
matches the implemented behavior (link update PR if changes are needed)

### Before requesting review
- [x] I have reviewed the code myself
- [x] I have created follow-up issues caused by this PR and linked them
here

### After merging, notify other teams

[Add or remove entries as needed]

- [ ] [Rust SDK](https://github.com/FuelLabs/fuels-rs/)
- [ ] [Sway compiler](https://github.com/FuelLabs/sway/)
- [ ] [Platform
documentation](https://github.com/FuelLabs/devrel-requests/issues/new?assignees=&labels=new+request&projects=&template=NEW-REQUEST.yml&title=%5BRequest%5D%3A+)
(for out-of-organization contributors, the person merging the PR will do
this)
- [ ] Someone else?
  • Loading branch information
rymnc authored Jan 15, 2025
1 parent 4e73ffe commit dfc7fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests/gas_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,11 @@ fn produce_block__l1_committed_block_affects_gas_price() {
tokio::time::sleep(Duration::from_millis(200)).await;
// Produce new block to update gas price
driver.client.produce_blocks(1, None).await.unwrap();
tokio::time::sleep(Duration::from_millis(20)).await;
tokio::time::sleep(Duration::from_millis(50)).await;
// Produce new block to _use_ the updated gas price
driver.client.produce_blocks(1, None).await.unwrap();
// Wait for that block to be picked up by the gas price service and communicated to GraphQL
tokio::time::sleep(Duration::from_millis(20)).await;
tokio::time::sleep(Duration::from_millis(50)).await;
let gas_price = driver.client.estimate_gas_price(0).await.unwrap().gas_price;
// cleanup
driver.kill().await;
Expand Down

0 comments on commit dfc7fd7

Please sign in to comment.