| 1193 | EXPECT_FALSE(deallocation->resources.contains(agent2.id())); |
| 1194 | |
| 1195 | foreachvalue ( |
| 1196 | const UnavailableResources& unavailableResources, |
| 1197 | deallocation->resources) { |
| 1198 | // The resources in the inverse offer are unspecified. |
| 1199 | // This means everything is being requested back. |
| 1200 | EXPECT_EQ(Resources(), unavailableResources.resources); |
| 1201 | |
| 1202 | EXPECT_EQ( |
| 1203 | start.duration(), |
| 1204 | Nanoseconds(unavailableResources.unavailability.start().nanoseconds())); |
| 1205 | } |
| 1206 | |
| 1207 | // Ensure only one offer should be deallocated. |
| 1208 | EXPECT_TRUE(deallocations.get().isPending()); |
no test coverage detected