Memory: nil, Disk: nil, Bandwidth: nil, CPU: nil, }, )) }) }) }) Describe("Restoring", func() { It("sets the container's state and events", func() { err := container.Restore(linux_backend.LinuxContainerSpec{ State: "active", Events: []string{"out of memory", "foo"}, Resources: containerResources, }) Expect(err).ToNot(HaveOccurred()) Expect(container.State()).To(Equal(linux_backend.State("active"))) Expect(container.Events()).To(Equal([]string{ "out of memory", "foo", })) }) It("restores process state", func() { err := container.Restore(linux_backend.LinuxContainerSpec{ State: "active",