File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -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