}) Context("when the container has an oom notifier running", func() { JustBeforeEach(func() { err := container.LimitMemory(garden.MemoryLimits{ LimitInBytes: 42, }) Expect(err).ToNot(HaveOccurred()) }) It("stops it", func() { err := container.Stop(false) Expect(err).ToNot(HaveOccurred()) Expect(fakeOomWatcher.UnwatchCallCount()).To(Equal(1)) }) }) }) Describe("Cleaning up", func() { Context("when the container has an oom notifier running", func() { JustBeforeEach(func() { err := container.LimitMemory(garden.MemoryLimits{ LimitInBytes: 42, }) Expect(err).ToNot(HaveOccurred()) }) It("stops it", func() {