The test DockerTestEnvironmentDockerRuntimeInvalidRuntimeGivenTest aims to verify that the test environment can't be started with an invalud docker runtime. In the expected behavior it will not create the class variable spawned_docker_test_environments. However during the teardown of the test we still try to close the test envirnment referenced by spawned_docker_test_environments, which is expected to fail and raise an exception. This exception is printed out and pollutes the log of the test.
Acceptance
Avoid printing the exception if it's the expected exception.
Background
The test DockerTestEnvironmentDockerRuntimeInvalidRuntimeGivenTest aims to verify that the test environment can't be started with an invalud docker runtime. In the expected behavior it will not create the class variable
spawned_docker_test_environments
. However during theteardown
of the test we still try to close the test envirnment referenced byspawned_docker_test_environments
, which is expected to fail and raise an exception. This exception is printed out and pollutes the log of the test.Acceptance
Avoid printing the exception if it's the expected exception.