Skip to content

Commit e6e44c6

Browse files
committed
test(snap): restore gateway restart assertion
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 241c640 commit e6e44c6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎python/openshell/release_formula_test.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,13 @@ def test_snap_wrapper_uses_optional_gateway_config_without_generating_toml() ->
131131
assert 'exec "${SNAP}/bin/openshell-gateway" "$@"' in wrapper
132132

133133

134-
def test_snap_docker_connect_hook_enables_and_starts_gateway() -> None:
134+
def test_snap_docker_connect_hook_restarts_gateway() -> None:
135135
repo_root = Path(__file__).resolve().parents[2]
136136
hook = repo_root / "snap/hooks/connect-plug-docker"
137-
snapcraft = (repo_root / "snapcraft.yaml").read_text(encoding="utf-8")
138137

139138
assert hook.is_file()
140139
assert hook.stat().st_mode & stat.S_IXUSR
141-
assert "install-mode: disable" in snapcraft
142-
assert 'snapctl start --enable "${SNAP_INSTANCE_NAME}.gateway"' in hook.read_text(
140+
assert 'snapctl restart "${SNAP_INSTANCE_NAME}.gateway"' in hook.read_text(
143141
encoding="utf-8"
144142
)
145143

0 commit comments

Comments
 (0)