Skip to content

Commit bc89de6

Browse files
thaJeztahchris-crone
authored andcommitted
Fix broken test due to BUSYBOX -> TEST_IMG rename
The BUSYBOX variable was renamed to TEST_IMG in 54b48a9, however 0ddf428 got merged after that change, but was out of date, and therefore caused the tests to fail: ``` =================================== FAILURES =================================== ________ ServiceTest.test_create_service_with_network_attachment_config ________ tests/integration/api_service_test.py:379: in test_create_service_with_network_attachment_config container_spec = docker.types.ContainerSpec(BUSYBOX, ['true']) E NameError: global name 'BUSYBOX' is not defined ``` Fix the test by using the correct variable name. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 7c8264c commit bc89de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/api_service_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def test_create_service_with_network_attachment_config(self):
376376
'dockerpytest_1', driver='overlay', ipam={'Driver': 'default'}
377377
)
378378
self.tmp_networks.append(network['Id'])
379-
container_spec = docker.types.ContainerSpec(BUSYBOX, ['true'])
379+
container_spec = docker.types.ContainerSpec(TEST_IMG, ['true'])
380380
network_config = docker.types.NetworkAttachmentConfig(
381381
target='dockerpytest_1',
382382
aliases=['dockerpytest_1_alias'],

0 commit comments

Comments
 (0)