| 1220 | CHECK(inverseOffers.empty()); |
| 1221 | |
| 1222 | foreachvalue (Future<Option<string>> future, authenticating) { |
| 1223 | // NOTE: This is necessary during tests because a copy of |
| 1224 | // this future is used to setup authentication timeout. If a |
| 1225 | // test doesn't discard this future, authentication timeout might |
| 1226 | // fire in a different test and any associated callbacks |
| 1227 | // (e.g., '_authenticate()') would be called. This is because the |
| 1228 | // master pid doesn't change across the tests. |
| 1229 | // TODO(vinod): This seems to be a bug in libprocess or the |
| 1230 | // testing infrastructure. |
| 1231 | future.discard(); |
| 1232 | } |
| 1233 | |
| 1234 | foreachvalue (Role* role, roles) { |
| 1235 | delete role; |
no test coverage detected