Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use multiple faucets #2661

Merged
merged 3 commits into from
Oct 2, 2024
Merged

Use multiple faucets #2661

merged 3 commits into from
Oct 2, 2024

Conversation

mkoura
Copy link
Collaborator

@mkoura mkoura commented Oct 2, 2024

When running tests in parallel, having single faucet can be a bottleneck.
Only single test can use the faucet address at a time (otherwise multiple tests would be spending the same UTxOs). It can take a lot of time to gain access to the faucet on slower testnets.
Having multiple faucet addresses speed things up, because the time needed for gaining exclusive access to a faucet address is reduced.

- Create directory for faucet addresses data among test artifacts for
  better access during testnet cleanup.
- Add more test address records to `ClusterType`.
- Adjust funding logic to distribute funds evenly among new addresses.
- Refactor address creation and funding logic for better clarity.
- Added `all_faucets` parameter to `fund_from_faucet` function.
- Randomly select a faucet from `all_faucets` if `faucet_data` is not provided.
- Ensure either `faucet_data` or `all_faucets` is provided.
@mkoura mkoura requested a review from saratomaz as a code owner October 2, 2024 12:05
@mkoura mkoura changed the title Multiple faucets Use multiple faucets Oct 2, 2024
@mkoura mkoura merged commit 9708c55 into master Oct 2, 2024
3 checks passed
@mkoura mkoura deleted the multiple_faucets branch October 2, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant