"github.com/cloudfoundry-incubator/garden-linux/container_daemon" "github.com/cloudfoundry-incubator/garden-linux/container_daemon/fake_connection_handler" "github.com/cloudfoundry-incubator/garden-linux/container_daemon/unix_socket" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "fmt" "net" ) var _ = Describe("Unix socket", func() { var ( listener *unix_socket.Listener connector *unix_socket.Connector connectionHandler *fake_connection_handler.FakeConnectionHandler socketPath string sentPid int sentError error sentErrorMutex sync.Mutex ) BeforeEach(func() { tmpDir, err := ioutil.TempDir("", "") Expect(err).ToNot(HaveOccurred()) socketPath = path.Join(tmpDir, "the_socket_file.sock") sentErrorMutex.Lock() defer sentErrorMutex.Unlock() sentError = nil sentPid = 0 connectionHandler = &fake_connection_handler.FakeConnectionHandler{}
"github.com/cloudfoundry-incubator/garden-linux/container_daemon/unix_socket" "github.com/cloudfoundry-incubator/garden-linux/container_daemon/unix_socket/fake_connection_handler" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "fmt" "net" ) var _ = Describe("Unix socket", func() { var ( listener *unix_socket.Listener connector *unix_socket.Connector connectionHandler *fake_connection_handler.FakeConnectionHandler socketPath string sentPid int sentError error sentErrorMutex sync.Mutex ) BeforeEach(func() { tmpDir, err := ioutil.TempDir("", "") Expect(err).ToNot(HaveOccurred()) socketPath = path.Join(tmpDir, "the_socket_file.sock") sentErrorMutex.Lock() defer sentErrorMutex.Unlock() sentError = nil sentPid = 0 connectionHandler = &fake_connection_handler.FakeConnectionHandler{}