mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 16:08:51 +03:00
test: Missing duplicates tests in test_receiver.py
(#11413)
This commit is contained in:
parent
629c303077
commit
2d0d8e175e
@ -218,6 +218,7 @@ async def test_reset() -> None:
|
|||||||
receiver._last_sync = dataclasses.replace(receiver._current_sync)
|
receiver._last_sync = dataclasses.replace(receiver._current_sync)
|
||||||
receiver._invalid = ["1"]
|
receiver._invalid = ["1"]
|
||||||
receiver._keys_missing = ["1"]
|
receiver._keys_missing = ["1"]
|
||||||
|
receiver._duplicates = ["1"]
|
||||||
|
|
||||||
receiver._last_sync.sync_id = uint64(1)
|
receiver._last_sync.sync_id = uint64(1)
|
||||||
# Call `reset` and make sure all expected values are set back to their defaults.
|
# Call `reset` and make sure all expected values are set back to their defaults.
|
||||||
@ -237,6 +238,7 @@ async def test_to_dict(counts_only: bool) -> None:
|
|||||||
assert get_list_or_len(plot_sync_dict_1["plots"], not counts_only) == 10
|
assert get_list_or_len(plot_sync_dict_1["plots"], not counts_only) == 10
|
||||||
assert get_list_or_len(plot_sync_dict_1["failed_to_open_filenames"], not counts_only) == 0
|
assert get_list_or_len(plot_sync_dict_1["failed_to_open_filenames"], not counts_only) == 0
|
||||||
assert get_list_or_len(plot_sync_dict_1["no_key_filenames"], not counts_only) == 0
|
assert get_list_or_len(plot_sync_dict_1["no_key_filenames"], not counts_only) == 0
|
||||||
|
assert get_list_or_len(plot_sync_dict_1["duplicates"], not counts_only) == 0
|
||||||
assert plot_sync_dict_1["total_plot_size"] == sum(plot.file_size for plot in receiver.plots().values())
|
assert plot_sync_dict_1["total_plot_size"] == sum(plot.file_size for plot in receiver.plots().values())
|
||||||
assert plot_sync_dict_1["syncing"] is None
|
assert plot_sync_dict_1["syncing"] is None
|
||||||
assert plot_sync_dict_1["last_sync_time"] is None
|
assert plot_sync_dict_1["last_sync_time"] is None
|
||||||
|
Loading…
Reference in New Issue
Block a user