@@ -251,7 +251,7 @@ var _ = Describe("CreateVolume [Controller Server]", func() {
251
251
Expect (vol ).NotTo (BeNil ())
252
252
Expect (vol .GetVolume ()).NotTo (BeNil ())
253
253
Expect (vol .GetVolume ().GetId ()).NotTo (BeEmpty ())
254
- Expect (vol .GetVolume ().GetCapacityBytes ()).To (Equal ( size ))
254
+ Expect (vol .GetVolume ().GetCapacityBytes ()).To (BeNumerically ( ">=" , size ))
255
255
}
256
256
By ("cleaning up deleting the volume" )
257
257
_ , err = c .DeleteVolume (
@@ -288,7 +288,7 @@ var _ = Describe("CreateVolume [Controller Server]", func() {
288
288
Expect (vol1 ).NotTo (BeNil ())
289
289
Expect (vol1 .GetVolume ()).NotTo (BeNil ())
290
290
Expect (vol1 .GetVolume ().GetId ()).NotTo (BeEmpty ())
291
- Expect (vol1 .GetVolume ().GetCapacityBytes ()).To (Equal ( size ))
291
+ Expect (vol1 .GetVolume ().GetCapacityBytes ()).To (BeNumerically ( ">=" , size ))
292
292
vol2 , err := c .CreateVolume (
293
293
context .Background (),
294
294
& csi.CreateVolumeRequest {
@@ -311,7 +311,7 @@ var _ = Describe("CreateVolume [Controller Server]", func() {
311
311
Expect (vol2 ).NotTo (BeNil ())
312
312
Expect (vol2 .GetVolume ()).NotTo (BeNil ())
313
313
Expect (vol2 .GetVolume ().GetId ()).NotTo (BeEmpty ())
314
- Expect (vol2 .GetVolume ().GetCapacityBytes ()).To (Equal ( size ))
314
+ Expect (vol2 .GetVolume ().GetCapacityBytes ()).To (BeNumerically ( ">=" , size ))
315
315
Expect (vol1 .GetVolume ().GetId ()).To (Equal (vol2 .GetVolume ().GetId ()))
316
316
317
317
By ("cleaning up deleting the volume" )
0 commit comments