From 6b516deb91ee33122d49b064ed53ca57aaa4b2e2 Mon Sep 17 00:00:00 2001 From: mmmray <142015632+mmmray@users.noreply.github.com> Date: Fri, 26 Jul 2024 15:10:06 -0500 Subject: [PATCH] Remove unnecessary sleep from test These were copypasted to splithttp tests and then removed there I can't imagine what they were supposed to do, the tests run fine without --- transport/internet/httpupgrade/httpupgrade_test.go | 2 -- transport/internet/websocket/ws_test.go | 1 - 2 files changed, 3 deletions(-) diff --git a/transport/internet/httpupgrade/httpupgrade_test.go b/transport/internet/httpupgrade/httpupgrade_test.go index 6fcb7a97b9fe..a8108fe6ec8d 100644 --- a/transport/internet/httpupgrade/httpupgrade_test.go +++ b/transport/internet/httpupgrade/httpupgrade_test.go @@ -58,7 +58,6 @@ func Test_listenHTTPUpgradeAndDial(t *testing.T) { } common.Must(conn.Close()) - <-time.After(time.Second * 5) conn, err = Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), listenPort), streamSettings) common.Must(err) _, err = conn.Write([]byte("Test connection 2")) @@ -118,7 +117,6 @@ func Test_listenHTTPUpgradeAndDialWithHeaders(t *testing.T) { } common.Must(conn.Close()) - <-time.After(time.Second * 5) conn, err = Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), listenPort), streamSettings) common.Must(err) _, err = conn.Write([]byte("Test connection 2")) diff --git a/transport/internet/websocket/ws_test.go b/transport/internet/websocket/ws_test.go index 5fcc0a471759..a9a2b8850aca 100644 --- a/transport/internet/websocket/ws_test.go +++ b/transport/internet/websocket/ws_test.go @@ -58,7 +58,6 @@ func Test_listenWSAndDial(t *testing.T) { } common.Must(conn.Close()) - <-time.After(time.Second * 5) conn, err = Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), listenPort), streamSettings) common.Must(err) _, err = conn.Write([]byte("Test connection 2"))