main_test.go 365 B

1234567891011121314151617181920
  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. package integration
  5. import (
  6. "os"
  7. "testing"
  8. "go.etcd.io/etcd/pkg/testutil"
  9. )
  10. func TestMain(m *testing.M) {
  11. v := m.Run()
  12. if v == 0 && testutil.CheckLeakedGoroutine() {
  13. os.Exit(1)
  14. }
  15. os.Exit(v)
  16. }