remove checking if memory size < 0 for QuantityToByte func
@@ -488,13 +488,6 @@ var _ = Describe("Converter", func() {
b451231, _ := resource.ParseQuantity("451231")
Expect(QuantityToByte(b451231).Value).To(Equal(uint64(451231)))
- By("specifying memory -45Gi")
- // ParseQuantity accepts negative values
- // because of conversion from int to unsigned int
- // it must be tested as well
- mgi45, _ := resource.ParseQuantity("-45Gi")
- Expect(QuantityToByte(mgi45).Value).To(Equal(uint64(48318382080)))
-
By("specifying memory which exceeds int64 size")
exceeds, _ := resource.ParseQuantity("1Pi")
Expect(QuantityToByte(exceeds).Value).To(Equal(uint64(0)))
