Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Dec 1, 2024
1 parent 45ffbbd commit c884418
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379

steps:
- uses: actions/checkout@v2

Expand Down
5 changes: 2 additions & 3 deletions src/cst_python/memory_storage/logical_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import abc
import functools

from typing import Self

class LogicalTime(abc.ABC):

Expand All @@ -23,7 +22,7 @@ def from_str(cls, string:str) -> "LogicalTime":

@classmethod
@abc.abstractmethod
def syncronize(cls, time0:Self, time1:Self) -> "LogicalTime":
def syncronize(cls, time0, time1) -> "LogicalTime":
...

@abc.abstractmethod
Expand Down Expand Up @@ -77,7 +76,7 @@ def from_str(cls, string:str) -> "LamportTime":
return LamportTime(int(string))

@classmethod
def syncronize(cls, time0:Self, time1:Self) -> "LamportTime":
def syncronize(cls, time0, time1) -> "LamportTime":
new_time = 0
if time0 < time1:
new_time = time1._time
Expand Down

0 comments on commit c884418

Please sign in to comment.