diff --git a/clone/leak_test.go b/clone/leak_test.go new file mode 100644 index 000000000..a6aa3a00b --- /dev/null +++ b/clone/leak_test.go @@ -0,0 +1,8 @@ +package clone + +import "testing" +import "go.uber.org/goleak" + +func TestMain(m *testing.M) { + goleak.VerifyTestMain(m, goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start")) +} diff --git a/driver/leak_test.go b/driver/leak_test.go new file mode 100644 index 000000000..26f8b3908 --- /dev/null +++ b/driver/leak_test.go @@ -0,0 +1,8 @@ +package driver + +import "testing" +import "go.uber.org/goleak" + +func TestMain(m *testing.M) { + goleak.VerifyTestMain(m, goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start")) +} diff --git a/go.mod b/go.mod index 10057c4fb..da07a0d70 100644 --- a/go.mod +++ b/go.mod @@ -3,5 +3,6 @@ module github.com/jetbrains-infra/packer-builder-vsphere require ( github.com/hashicorp/packer v1.4.2 github.com/vmware/govmomi v0.20.0 + go.uber.org/goleak v0.10.1-0.20190517053103-3b0196519f16 golang.org/x/mobile v0.0.0-20190607214518-6fa95d984e88 ) diff --git a/go.sum b/go.sum index 98d5f61a4..270287edf 100644 --- a/go.sum +++ b/go.sum @@ -342,6 +342,8 @@ github.com/yandex-cloud/go-sdk v0.0.0-20190402114215-3fc1d6947035/go.mod h1:Eml0 go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= go.opencensus.io v0.21.0 h1:mU6zScU4U1YAFPHEHYk+3JC4SY7JxgkqS10ZOSyksNg= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.uber.org/goleak v0.10.1-0.20190517053103-3b0196519f16 h1:ucZ8P+3HTFz4/kqeQ9Mg0j8F/oHbcaWfKLWiBo3QLKk= +go.uber.org/goleak v0.10.1-0.20190517053103-3b0196519f16/go.mod h1:VCZuO8V8mFPlL0F5J5GK1rtHV3DrFcQ1R8ryq7FK0aI= go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= diff --git a/iso/leak_test.go b/iso/leak_test.go new file mode 100644 index 000000000..c7e35604f --- /dev/null +++ b/iso/leak_test.go @@ -0,0 +1,8 @@ +package iso + +import "testing" +import "go.uber.org/goleak" + +func TestMain(m *testing.M) { + goleak.VerifyTestMain(m, goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start")) +}