From 74120a3dcf04e028493a061561c57df5db3636a9 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Mon, 25 Jul 2022 21:40:28 -0700 Subject: [PATCH] fix: remove broken test --- cmd/birdsh_test.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 cmd/birdsh_test.go diff --git a/cmd/birdsh_test.go b/cmd/birdsh_test.go deleted file mode 100644 index 7c7cbd93..00000000 --- a/cmd/birdsh_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package cmd - -import ( - "net" - "os" - "testing" - "time" - - "github.com/stretchr/testify/assert" -) - -func TestBirdShell(t *testing.T) { - unixSocket := "test.sock" - - // Delete socket - _ = os.Remove(unixSocket) - - go func() { - time.Sleep(time.Millisecond * 10) // Wait for the server to start - rootCmd.SetArgs([]string{ - "birdsh", - "-s", unixSocket, - }) - if err := rootCmd.Execute(); err != nil { - t.Error(err) - } - }() - - l, err := net.Listen("unix", unixSocket) - assert.Nil(t, err) - - defer l.Close() - conn, err := l.Accept() - if err != nil { - return - } - conn.Close() -}