MCPcopy Create free account
hub / github.com/apache/mesos / TearDown

Method TearDown

src/tests/containerizer/docker_tests.cpp:89–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 void TearDown() override
90 {
91 Try<Owned<Docker>> docker = Docker::create(
92 tests::flags.docker,
93 tests::flags.docker_socket,
94 false);
95
96 ASSERT_SOME(docker);
97
98 Future<vector<Docker::Container>> containers =
99 docker.get()->ps(true, NAME_PREFIX);
100
101 AWAIT_READY(containers);
102
103 // Cleanup all mesos launched containers.
104 foreach (const Docker::Container& container, containers.get()) {
105 AWAIT_READY_FOR(docker.get()->rm(container.id, true), Seconds(30));
106 }
107
108 MesosTest::TearDown();
109 }
110
111protected:
112 // Converts `path` to C:\`path` on Windows and /`path` on Linux.

Callers

nothing calls this directly

Calls 3

psMethod · 0.80
createFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected