Skip to content

Commit 6cebadd

Browse files
lor1113elena-kolevska
authored and
Lorenzo Curcio
committed
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]> Signed-off-by: Lorenzo Curcio <[email protected]>
1 parent cc6ee78 commit 6cebadd

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)