Skip to content

Commit

Permalink
Redis args test
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Dec 2, 2024
1 parent d5c4da5 commit 0588cd5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/cst_python/memory_storage/test_memory_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,19 @@ def test_node_enter(self) -> None:
assert "node" in members
assert "node1" in members

def test_redis_args(self) -> None:
redis_args = {"host":"localhost", "port":6379}
ms_codelet = MemoryStorageCodelet(self.mind, **redis_args)
ms_codelet.time_step = 50
self.mind.insert_codelet(ms_codelet)
self.mind.start()

time.sleep(sleep_time)

members = client.smembers("default_mind:nodes")
assert len(members) == 1
assert "node" in members

def test_memory_transfer(self) -> None:

memory1 = self.mind.create_memory_object("Memory1", "INFO")
Expand Down

0 comments on commit 0588cd5

Please sign in to comment.