go.etcd.io/etcd@v3.3.27+incompatible/integration/main_test.go (about) 1 // Copyright 2013 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package integration 6 7 import ( 8 "os" 9 "testing" 10 11 "github.com/coreos/etcd/pkg/testutil" 12 ) 13 14 func TestMain(m *testing.M) { 15 v := m.Run() 16 if v == 0 && testutil.CheckLeakedGoroutine() { 17 os.Exit(1) 18 } 19 os.Exit(v) 20 }