Пример #1
0
				Resources: containerResources,

				Processes: []linux_backend.ActiveProcess{
					{
						ID:  0,
						TTY: false,
					},
					{
						ID:  1,
						TTY: true,
					},
				},
			})
			Expect(err).ToNot(HaveOccurred())

			pid, _ := fakeProcessTracker.RestoreArgsForCall(0)
			Expect(pid).To(Equal("0"))

			pid, _ = fakeProcessTracker.RestoreArgsForCall(1)
			Expect(pid).To(Equal("1"))
		})

		It("makes the next process ID be higher than the highest restored ID", func() {
			err := container.Restore(linux_backend.LinuxContainerSpec{
				State:     "active",
				Events:    []string{},
				Resources: containerResources,

				Processes: []linux_backend.ActiveProcess{
					{
						ID:  0,