Skip to content

Commit

Permalink
chore: don't merge, testing .open and .closed
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Nov 25, 2024
1 parent f176d82 commit b58aaac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions juju/client/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def status(self):
)

if stopped or not connection._ws.open:
raise BaseException("FIXME just testing not open")
return self.ERROR

# everything is fine!
Expand Down Expand Up @@ -358,6 +359,7 @@ async def close(self, to_reconnect: bool = False):
self._debug_log_task.cancel()

if self._ws and not self._ws.closed:
raise BaseException("FIXME just testing two")
await self._ws.close()

if not to_reconnect:
Expand Down

0 comments on commit b58aaac

Please sign in to comment.