mirror of https://github.com/docker/docker-py.git
Dont include mem_swappiness when testing use of str values
Signed-off-by: Dustin Falgout <dustin@falgout.us>
This commit is contained in:
parent
c07dd53a2a
commit
01353c11ca
|
@ -342,7 +342,6 @@ class CreateContainerTest(api_test.BaseTestCase):
|
||||||
BUSYBOX, 'true',
|
BUSYBOX, 'true',
|
||||||
host_config=self.client.create_host_config(
|
host_config=self.client.create_host_config(
|
||||||
memswap_limit='1G',
|
memswap_limit='1G',
|
||||||
mem_swappiness='40',
|
|
||||||
mem_limit='700M'
|
mem_limit='700M'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -353,7 +352,7 @@ class CreateContainerTest(api_test.BaseTestCase):
|
||||||
|
|
||||||
self.assertIn('HostConfig', inspect)
|
self.assertIn('HostConfig', inspect)
|
||||||
host_config = inspect['HostConfig']
|
host_config = inspect['HostConfig']
|
||||||
for limit in ['Memory', 'MemorySwappiness', 'MemorySwap']:
|
for limit in ['Memory', 'MemorySwap']:
|
||||||
self.assertIn(limit, host_config)
|
self.assertIn(limit, host_config)
|
||||||
|
|
||||||
def test_create_with_memory_constraints_with_int(self):
|
def test_create_with_memory_constraints_with_int(self):
|
||||||
|
|
Loading…
Reference in New Issue