Skip to content

Commit

Permalink
Merge branch 'master' into PHP-8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka authored Nov 20, 2024
2 parents e445057 + d305fb6 commit a217ef3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/sample/Compute/v2/VolumeAttachmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,20 @@ public function testDetach(VolumeAttachment $createdVolumeAttachment)
$volume->waitUntil('available', 240);
$this->assertEquals('available', $volume->status);

sleep(5);

$server = $this->getService()->getServer(['id' => $createdVolumeAttachment->serverId]);
$server->retrieve();
foreach ($server->listVolumeAttachments() as $volumeAttachment) {
$this->assertNotEquals($createdVolumeAttachment->id, $volumeAttachment->id);
if ($volumeAttachment->volumeId === $createdVolumeAttachment->volumeId) {
print_r($volume);
print_r($volumeAttachment);
print_r($server);

$this->fail('Volume attachment was not detached');
} else {
$this->assertNotEquals($createdVolumeAttachment->id, $volumeAttachment->id);
}
}

$volume->delete();
Expand Down

0 comments on commit a217ef3

Please sign in to comment.