Skip to content

Commit

Permalink
to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Mar 5, 2022
1 parent 825112a commit 40c584f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3288,19 +3288,20 @@ async def test_Worker__to_dict(c, s, a):
"in_flight_workers",
"log",
"tasks",
"logs",
"config",
"incoming_transfer_log",
"outgoing_transfer_log",
"data_needed",
"pending_data_per_worker",
# attributes of WorkerMemoryManager
"data",
"max_spill",
"memory_limit",
"memory_monitor_interval",
"memory_pause_fraction",
"memory_spill_fraction",
"memory_target_fraction",
"logs",
"config",
"incoming_transfer_log",
"outgoing_transfer_log",
"data_needed",
"pending_data_per_worker",
}
assert d["tasks"]["x"]["key"] == "x"
assert d["data"] == ["x"]
Expand Down

0 comments on commit 40c584f

Please sign in to comment.