From d28c2aaa87fab3ed8c914f43319683ea36e42797 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 11 May 2026 10:34:30 -0700 Subject: [PATCH 1/2] Update log message --- get-newt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-newt.sh b/get-newt.sh index 77df9ed..5390871 100644 --- a/get-newt.sh +++ b/get-newt.sh @@ -273,7 +273,7 @@ main() { CUSTOM_PATH=$(parse_path_arg "$@") if [ -n "$CUSTOM_PATH" ]; then - print_status "Installing latest version of newt to ${CUSTOM_PATH} (--path override)..." + print_status "Installing latest version of newt to ${CUSTOM_PATH}..." else print_status "Installing latest version of newt..." fi @@ -331,4 +331,4 @@ main() { } # Run main function -main "$@" \ No newline at end of file +main "$@" From efa1ecf61e674ddfec3d40f828b6e79ec511f451 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 11 May 2026 18:04:51 -0700 Subject: [PATCH 2/2] Remove test --- netstack2/http_handler_tls_test.go | 48 ------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 netstack2/http_handler_tls_test.go diff --git a/netstack2/http_handler_tls_test.go b/netstack2/http_handler_tls_test.go deleted file mode 100644 index 0f2ffdc..0000000 --- a/netstack2/http_handler_tls_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package netstack2 - -import ( - "crypto/tls" - "net" - "testing" -) - -// tlsConnStub is a minimal net.Conn that also exposes TLS state, matching -// *tls.Conn's ConnectionState used by net/http.Server. -type tlsConnStub struct { - net.Conn - state tls.ConnectionState -} - -func (t *tlsConnStub) ConnectionState() tls.ConnectionState { - return t.state -} - -func TestHTTPConnCtxForwardsConnectionState(t *testing.T) { - c1, c2 := net.Pipe() - defer c1.Close() - defer c2.Close() - - inner := &tlsConnStub{ - Conn: c1, - state: tls.ConnectionState{Version: tls.VersionTLS12, HandshakeComplete: true}, - } - wrapped := &httpConnCtx{Conn: inner, rule: nil} - - got := wrapped.ConnectionState() - if got.Version != tls.VersionTLS12 || !got.HandshakeComplete { - t.Fatalf("ConnectionState = %+v, want TLS 1.2 and HandshakeComplete", got) - } -} - -func TestHTTPConnCtxConnectionStatePlainTCP(t *testing.T) { - c1, c2 := net.Pipe() - defer c1.Close() - defer c2.Close() - - wrapped := &httpConnCtx{Conn: c1, rule: nil} - got := wrapped.ConnectionState() - if got.Version != 0 { - t.Fatalf("expected zero ConnectionState for plain conn, got %+v", got) - } - _ = c2 -}