diff --git a/x-pack/filebeat/input/awss3/input_test.go b/x-pack/filebeat/input/awss3/input_test.go index 83015c1661be..432bd360bfc6 100644 --- a/x-pack/filebeat/input/awss3/input_test.go +++ b/x-pack/filebeat/input/awss3/input_test.go @@ -5,7 +5,6 @@ package awss3 import ( - "context" "errors" "testing" @@ -155,12 +154,3 @@ func TestRegionSelection(t *testing.T) { }) } } - -func newV2Context() (v2.Context, func()) { - ctx, cancel := context.WithCancel(context.Background()) - return v2.Context{ - Logger: logp.NewLogger("awss3_test"), - ID: "test_id", - Cancelation: ctx, - }, cancel -}