From 1bc701e7eeaa908800981f3fb927fb20bae5cb78 Mon Sep 17 00:00:00 2001 From: Alex Kim Date: Mon, 6 Nov 2023 14:41:51 -0800 Subject: [PATCH] test test --- pkg/daemon/ws_test.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pkg/daemon/ws_test.go b/pkg/daemon/ws_test.go index 2ce6636ca..6dc7bce90 100644 --- a/pkg/daemon/ws_test.go +++ b/pkg/daemon/ws_test.go @@ -2,6 +2,7 @@ package daemon import ( "context" + "fmt" "net" "net/http" "strings" @@ -10,18 +11,18 @@ import ( ) func TestAccessUnixSocket(t *testing.T) { - httpc := http.Client{ - Transport: &http.Transport{ - DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) { - var d net.Dialer - d.Timeout = 30 * time.Second - d.KeepAlive = 30 * time.Second - return d.DialContext(ctx, "unix", GetSockPath(false)) - }, - }, - } - // TODO: Enable me after the daemon is started + fmt.Println("Skip TestAccessUnixSocket") + // httpc := http.Client{ + // Transport: &http.Transport{ + // DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) { + // var d net.Dialer + // d.Timeout = 30 * time.Second + // d.KeepAlive = 30 * time.Second + // return d.DialContext(ctx, "unix", GetSockPath(false)) + // }, + // }, + // } // resp, err := httpc.Get("http://test" + "/ws") // if err != nil {