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

test: Give setup_farmer and setup_harvester a separate chia root #11408

Merged

Conversation

xdustinface
Copy link
Contributor

Them sharing the same root as BlockTools also leads issues in test which modify the content of config.yaml.

To make sure the first sync from the harvester to the farmer is done 
before we check plot counts.
Comment on lines +240 to +244
root_config = load_config(root_path, "config.yaml")
root_config["logging"]["log_stdout"] = True
root_config["selected_network"] = "testnet0"
root_config["farmer"]["selected_network"] = "testnet0"
save_config(root_path, "config.yaml", root_config)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
root_config = load_config(root_path, "config.yaml")
root_config["logging"]["log_stdout"] = True
root_config["selected_network"] = "testnet0"
root_config["farmer"]["selected_network"] = "testnet0"
save_config(root_path, "config.yaml", root_config)
with with lock_and_load_config(root_path, "config.yaml") as root_config:
root_config["logging"]["log_stdout"] = True
root_config["selected_network"] = "testnet0"
root_config["farmer"]["selected_network"] = "testnet0"
save_config(root_path, "config.yaml", root_config)

Copy link
Contributor

@altendky altendky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion can be handled separately.

@wjblanke wjblanke merged commit 7ed610b into Chia-Network:main May 3, 2022
xdustinface added a commit that referenced this pull request May 4, 2022
…11408)

* test: Give `setup_farmer` and `setup_harvester` a separate chia root

* test: Wait for `last_sync_time` in `get_harvesters_{summary}`

To make sure the first sync from the harvester to the farmer is done 
before we check plot counts.
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.

3 participants