Skip to content

Commit

Permalink
fix: test error
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jul 9, 2024
1 parent f6a62a3 commit 7177cbe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test_runlike.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def test_restart_with_max(self):
self.expect_substr('--restart=on-failure:3 \\', 3)

def test_restart_not_present(self):
self.dont_expect_substr('--restart', 4)
# If the restart policy is not set, the default value is no.
# self.dont_expect_substr('--restart', 4)
self.expect_substr('--restart=no \\')

def test_hostname(self):
self.expect_substr('--hostname=Essos \\')
Expand All @@ -91,7 +93,9 @@ def test_hostname_not_present(self):
self.dont_expect_substr('--hostname \\', 2)

def test_network_mode(self):
self.dont_expect_substr('--network', 1)
# When no network mode is set, bridge is used by default
# self.dont_expect_substr('--network', 1)
self.expect_substr('--network=bridge', 1)
self.expect_substr('--network=host', 2)
self.expect_substr('--network=runlike_fixture_bridge', 3)

Expand Down

0 comments on commit 7177cbe

Please sign in to comment.