2014-10-22 03:35:16 +04:00
|
|
|
// Copyright 2013 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package integration
|
|
|
|
|
|
|
|
import (
|
2015-12-19 20:25:26 +03:00
|
|
|
"os"
|
2014-10-22 03:35:16 +04:00
|
|
|
"testing"
|
2015-12-20 01:08:16 +03:00
|
|
|
|
2018-08-29 03:13:25 +03:00
|
|
|
"go.etcd.io/etcd/pkg/testutil"
|
2016-01-23 03:00:53 +03:00
|
|
|
)
|
2014-10-22 03:35:16 +04:00
|
|
|
|
2015-12-19 20:25:26 +03:00
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
v := m.Run()
|
2016-01-23 03:00:53 +03:00
|
|
|
if v == 0 && testutil.CheckLeakedGoroutine() {
|
2015-12-19 20:25:26 +03:00
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
os.Exit(v)
|
|
|
|
}
|