| 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 | |
| 90 | private: |
| 91 | hashset<std::string> realms; |
nothing calls this directly
no test coverage detected