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

Method TearDown

src/tests/logging_tests.cpp:73–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void TearDown() override
74 {
75 foreach (const std::string& realm, realms) {
76 // We need to wait in order to ensure that the operation completes before
77 // we leave `TearDown`. Otherwise, we may leak a mock object.
78 AWAIT_READY(unsetAuthenticator(realm));
79 }
80
81 realms.clear();
82
83 // In case libprocess-level authorization was enabled in the test, we unset
84 // the libprocess authorization callbacks.
85 process::http::authorization::unsetCallbacks();
86
87 MesosTest::TearDown();
88 }
89
90private:
91 hashset<std::string> realms;

Callers

nothing calls this directly

Calls 2

unsetCallbacksFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected