From 90a7c7af7cc4d2d5b847fc4138af71d03d572a60 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Tue, 30 Jan 2024 11:12:43 -0800 Subject: [PATCH] [confighttp] move implementation checks to test files (#9433) move implementation checks to test files #9431 --- config/confighttp/clientinfohandler.go | 2 -- config/confighttp/clientinfohandler_test.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/confighttp/clientinfohandler.go b/config/confighttp/clientinfohandler.go index 25105cf51a6..464153bc2c7 100644 --- a/config/confighttp/clientinfohandler.go +++ b/config/confighttp/clientinfohandler.go @@ -11,8 +11,6 @@ import ( "go.opentelemetry.io/collector/client" ) -var _ http.Handler = (*clientInfoHandler)(nil) - // clientInfoHandler is an http.Handler that enhances the incoming request context with client.Info. type clientInfoHandler struct { next http.Handler diff --git a/config/confighttp/clientinfohandler_test.go b/config/confighttp/clientinfohandler_test.go index d8201cad149..bbd18ec52fd 100644 --- a/config/confighttp/clientinfohandler_test.go +++ b/config/confighttp/clientinfohandler_test.go @@ -5,11 +5,14 @@ package confighttp // import "go.opentelemetry.io/collector/config/confighttp" import ( "net" + "net/http" "testing" "github.com/stretchr/testify/assert" ) +var _ http.Handler = (*clientInfoHandler)(nil) + func TestParseIP(t *testing.T) { testCases := []struct { desc string