Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnugraha committed Apr 4, 2024
1 parent 28afce5 commit 100eadb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/py/flwr/server/superlink/state/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def store_client_public_key(self, public_key: bytes) -> None:
def get_client_public_keys(self) -> Set[bytes]:
"""Retrieve all currently stored `client_public_keys` as a set."""

@abc.abstractmethod
def acknowledge_ping(self, node_id: int, ping_interval: float) -> bool:
"""Acknowledge a ping received from a node, serving as a heartbeat.
Expand Down
4 changes: 2 additions & 2 deletions src/py/flwr/server/superlink/state/state_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def test_initialize(self) -> None:
result = state.query("SELECT name FROM sqlite_schema;")

# Assert
assert len(result) == 12
assert len(result) == 13


class SqliteFileBasedTest(StateTest, unittest.TestCase):
Expand All @@ -580,7 +580,7 @@ def test_initialize(self) -> None:
result = state.query("SELECT name FROM sqlite_schema;")

# Assert
assert len(result) == 12
assert len(result) == 13


if __name__ == "__main__":
Expand Down

0 comments on commit 100eadb

Please sign in to comment.