Skip to content

Commit

Permalink
Update libocpp dependency to avoid blocking start() function of charg…
Browse files Browse the repository at this point in the history
…e point in OCPP and OCPP201 module and fix ocpp interface tests since we need to allow for a larger timeout until the websocket is connected / disconnected

Signed-off-by: Piet Gömpel <[email protected]>
  • Loading branch information
Pietfried committed Nov 28, 2024
1 parent 2b9d96d commit a9c96f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ libevse-security:
# OCPP
libocpp:
git: https://github.com/EVerest/libocpp.git
git_tag: 9836ac4766e99a79555adb15c3001c8704f8b7a7
git_tag: me-defer-connectivity-manager-connect
cmake_condition: "EVEREST_DEPENDENCY_ENABLED_LIBOCPP"
# Josev
Josev:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ async def test_command_restart(self, _env):
assert not csms_connection.is_connected
res = await _env.probe_module.call_command("ocpp", "restart", None)
assert res is True
await asyncio.sleep(5)
assert csms_connection.is_connected

async def test_command_restart_denied(self, _env):
Expand Down Expand Up @@ -573,8 +574,8 @@ async def test_subscribe_is_connected(self, _env):
assert await _env.probe_module.call_command("ocpp", "stop", None)
assert await _env.probe_module.call_command("ocpp", "restart", None)

await wait_for_mock_called(subscription_mock, mock_call(False))
await wait_for_mock_called(subscription_mock, mock_call(True))
await wait_for_mock_called(subscription_mock, mock_call(False), timeout=5)
await wait_for_mock_called(subscription_mock, mock_call(True), timeout=5)

@pytest.mark.parametrize(
"overwrite_implementation",
Expand Down

0 comments on commit a9c96f4

Please sign in to comment.