})
		})
	})

	Describe("Cleaning up", func() {
		Context("when the container has an oom notifier running", func() {
			BeforeEach(func() {
				err := container.LimitMemory(backend.MemoryLimits{
					LimitInBytes: 42,
				})

				Expect(err).ToNot(HaveOccurred())
			})

			It("stops it", func() {
				container.Cleanup()

				Expect(fakeRunner).To(HaveKilled(fake_command_runner.CommandSpec{
					Path: "/depot/some-id/bin/oom",
				}))
			})
		})

		Context("when there are active jobs", func() {
			linked := make(chan bool)

			BeforeEach(func() {
				setupSuccessfulSpawn()

				fakeRunner.WhenRunning(
					fake_command_runner.CommandSpec{