BlockSoft: 111, BlockHard: 222, InodeSoft: 333, InodeHard: 444, ByteSoft: 555, ByteHard: 666, } }) It("sets the container's disk limits and returns the current limits", func() { err := container.LimitDisk(setLimits) Ω(err).ShouldNot(HaveOccurred()) Ω(fakeContainer.LimitDiskArgsForCall(0)).Should(Equal(setLimits)) }) itResetsGraceTimeWhenHandling(func() { err := container.LimitDisk(setLimits) Ω(err).ShouldNot(HaveOccurred()) }) itFailsWhenTheContainerIsNotFound(func() error { return container.LimitDisk(garden.DiskLimits{}) }) Context("when limiting the disk fails", func() { BeforeEach(func() { fakeContainer.LimitDiskReturns(errors.New("oh no!")) })