diff --git a/dataclients/kubernetes/main_test.go b/dataclients/kubernetes/main_test.go index b1827b6a3c..1d0a625286 100644 --- a/dataclients/kubernetes/main_test.go +++ b/dataclients/kubernetes/main_test.go @@ -1,11 +1,12 @@ package kubernetes_test import ( + "os" "testing" - "go.uber.org/goleak" + "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { - goleak.VerifyTestMain(m) + os.Exit(noleak.CheckMain(m)) } diff --git a/eskip/main_test.go b/eskip/main_test.go index 10372d5b6e..a9fe05a632 100644 --- a/eskip/main_test.go +++ b/eskip/main_test.go @@ -1,11 +1,12 @@ package eskip_test import ( + "os" "testing" - "go.uber.org/goleak" + "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { - goleak.VerifyTestMain(m) + os.Exit(noleak.CheckMain(m)) } diff --git a/go.mod b/go.mod index b92f976ff7..360ad0531c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,7 @@ module github.com/zalando/skipper require ( + github.com/AlexanderYastrebov/noleak v0.0.0-20221129235517-c47a28e9072d github.com/MicahParks/keyfunc v1.0.1 github.com/abbot/go-http-auth v0.4.0 github.com/andybalholm/brotli v1.0.4 @@ -42,7 +43,6 @@ require ( github.com/yookoala/gofast v0.6.0 github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 go.uber.org/atomic v1.9.0 - go.uber.org/goleak v1.2.0 golang.org/x/crypto v0.0.0-20220817201139-bc19a97f63c8 golang.org/x/net v0.0.0-20220909164309-bea034e7d591 golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 diff --git a/go.sum b/go.sum index 3b96a7a613..ff5e5abaa5 100644 --- a/go.sum +++ b/go.sum @@ -33,6 +33,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/AlexanderYastrebov/noleak v0.0.0-20221129235517-c47a28e9072d h1:4QcbulbYsSmS073Nx21mWijdL3iJoAd5HAuYhjf0Heo= +github.com/AlexanderYastrebov/noleak v0.0.0-20221129235517-c47a28e9072d/go.mod h1:Ac8KyJXsCfx2Gb9h/Eb6SUYk2tQ9At1ICaBm/1mipJQ= github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= @@ -797,17 +799,15 @@ github.com/streadway/quantile v0.0.0-20220407130108-4246515d968d/go.mod h1:lbP8t github.com/stretchr/objx v0.0.0-20180129172003-8a3f7159479f/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.4.0 h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= @@ -891,8 +891,6 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= -go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= diff --git a/net/main_test.go b/net/main_test.go index ee7bce612c..5fb6047c72 100644 --- a/net/main_test.go +++ b/net/main_test.go @@ -1,11 +1,12 @@ package net_test import ( + "os" "testing" - "go.uber.org/goleak" + "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { - goleak.VerifyTestMain(m) + os.Exit(noleak.CheckMain(m)) } diff --git a/net/redistest/main_test.go b/net/redistest/main_test.go index d0df07d1a1..122227984e 100644 --- a/net/redistest/main_test.go +++ b/net/redistest/main_test.go @@ -1,11 +1,12 @@ package redistest_test import ( + "os" "testing" - "go.uber.org/goleak" + "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { - goleak.VerifyTestMain(m) + os.Exit(noleak.CheckMain(m)) }