Skip to content

Commit f830d58

Browse files
happyherpCarlos Freund
and
Carlos Freund
authored
fix(unittest): Parallel Test failure because of shared memory (#7729)
Co-authored-by: Carlos Freund <[email protected]>
1 parent 0519e9e commit f830d58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openhands/storage/memory.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
from openhands.core.logger import openhands_logger as logger
44
from openhands.storage.files import FileStore
55

6-
IN_MEMORY_FILES: dict = {}
7-
86

97
class InMemoryFileStore(FileStore):
108
files: dict[str, str]
119

12-
def __init__(self, files: dict[str, str] = IN_MEMORY_FILES):
13-
self.files = files
10+
def __init__(self, files: dict[str, str] | None = None) -> None:
11+
self.files = {}
12+
if files is not None:
13+
self.files = files
1414

1515
def write(self, path: str, contents: str | bytes) -> None:
1616
if isinstance(contents, bytes):

0 commit comments

Comments
 (0)