Skip to content

Commit

Permalink
[refactor] fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dunzeng committed Apr 22, 2022
1 parent 766dc4f commit 8bfa207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_core/test_server/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_update_model(self):
coming_parameters = SerializationTool.serialize_model(coming_model)

self.AsyncHandler._update_global_model(payload=[coming_parameters,
random.randint(1, 10)])
torch.Tensor([random.randint(1, 10)])])

parameter_list = []
for id in range(self.SyncHandler.client_num_per_round):
Expand Down

0 comments on commit 8bfa207

Please sign in to comment.