File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public function testDetach(VolumeAttachment $createdVolumeAttachment)
70
70
// let's wait for the server to be completely up
71
71
// https://bugs.launchpad.net/nova/+bug/1998148
72
72
// https://bugs.launchpad.net/nova/+bug/1960346
73
- sleep (30 );
73
+ sleep (15 );
74
74
75
75
require_once $ this ->sampleFile (
76
76
'volume_attachments/delete.php ' ,
@@ -84,9 +84,20 @@ public function testDetach(VolumeAttachment $createdVolumeAttachment)
84
84
$ volume ->waitUntil ('available ' , 240 );
85
85
$ this ->assertEquals ('available ' , $ volume ->status );
86
86
87
+ sleep (5 );
88
+
87
89
$ server = $ this ->getService ()->getServer (['id ' => $ createdVolumeAttachment ->serverId ]);
90
+ $ server ->retrieve ();
88
91
foreach ($ server ->listVolumeAttachments () as $ volumeAttachment ) {
89
- $ this ->assertNotEquals ($ createdVolumeAttachment ->id , $ volumeAttachment ->id );
92
+ if ($ volumeAttachment ->volumeId === $ createdVolumeAttachment ->volumeId ) {
93
+ print_r ($ volume );
94
+ print_r ($ volumeAttachment );
95
+ print_r ($ server );
96
+
97
+ $ this ->fail ('Volume attachment was not detached ' );
98
+ } else {
99
+ $ this ->assertNotEquals ($ createdVolumeAttachment ->id , $ volumeAttachment ->id );
100
+ }
90
101
}
91
102
92
103
$ volume ->delete ();
You can’t perform that action at this time.
0 commit comments