Skip to content

Commit dd7fc1d

Browse files
Update dapr/actor/runtime/mock_state_manager.py
Fixing bug in try_add_state as mentioned in PR #756 Co-authored-by: Elena Kolevska <[email protected]> Signed-off-by: Lorenzo Curcio <[email protected]>
1 parent 119a21d commit dd7fc1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dapr/actor/runtime/mock_state_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def try_add_state(self, state_name: str, value: T) -> bool:
5151
return True
5252
return False
5353
existed = state_name in self._mock_state
54-
if not existed:
54+
if existed:
5555
return False
5656
self._default_state_change_tracker[state_name] = StateMetadata(value, StateChangeKind.add)
5757
self._mock_state[state_name] = value

0 commit comments

Comments
 (0)