/// interruption transitions to the waiting state if the partner refuses delayed
/// lease updates.
void testSendUpdatesCommunicationRecoveryFailed() {
- // Start HTTP servers.
- ASSERT_NO_THROW({
- listener_->start();
- listener2_->start();
- listener3_->start();
- });
-
// Simulate that the partner returns an error.
factory2_->getResponseCreator()->setControlResult(CONTROL_RESULT_ERROR);
service_->communication_state_->poke();
service_->communication_state_->setPartnerState("load-balancing");
+ // Start HTTP servers.
+ ASSERT_NO_THROW({
+ listener_->start();
+ listener2_->start();
+ listener3_->start();
+ });
+
// This should cause the server to attempt to send outstanding lease
// updates to the partner. The partner reports an error so that should
// cause this server to transition to the waiting state from which it
/// interruption transitions to the waiting state if the partner refuses delayed
/// lease updates.
void testSendUpdatesCommunicationRecovery6Failed() {
- // Start HTTP servers.
- ASSERT_NO_THROW({
- listener_->start();
- listener2_->start();
- listener3_->start();
- });
-
// Simulate that the partner returns an error.
factory2_->getResponseCreator()->setControlResult(CONTROL_RESULT_ERROR);
service_->communication_state_->poke();
service_->communication_state_->setPartnerState("load-balancing");
+ // Start HTTP servers.
+ ASSERT_NO_THROW({
+ listener_->start();
+ listener2_->start();
+ listener3_->start();
+ });
+
// This should cause the server to attempt to send outstanding lease
// updates to the partner. The partner reports an error so that should
// cause this server to transition to the waiting state from which it