コード例 #1
0
ファイル: main_test.go プロジェクト: billhongs/cockroach
func TestMain(m *testing.M) {
	defer func(retryOpts retry.Options) {
		clientRetryOptions = retryOpts
	}(clientRetryOptions)

	clientRetryOptions = retry.Options{
		InitialBackoff: 1 * time.Millisecond,
		MaxBackoff:     1 * time.Millisecond,
	}

	leaktest.TestMainWithLeakCheck(m)
}
コード例 #2
0
ファイル: main_test.go プロジェクト: mbertschler/cockroach
func TestMain(m *testing.M) {
	defer func(hbInterval time.Duration, retryOpts retry.Options) {
		heartbeatInterval = hbInterval
		clientRetryOptions = retryOpts
	}(heartbeatInterval, clientRetryOptions)

	heartbeatInterval = 10 * time.Millisecond
	clientRetryOptions = retry.Options{
		InitialBackoff: 1 * time.Millisecond,
		MaxBackoff:     1 * time.Millisecond,
	}

	leaktest.TestMainWithLeakCheck(m)
}
コード例 #3
0
ファイル: main_test.go プロジェクト: kaustubhkurve/cockroach
func TestMain(m *testing.M) {
	leaktest.TestMainWithLeakCheck(m)
}
コード例 #4
0
ファイル: main_test.go プロジェクト: kaustubhkurve/cockroach
func TestMain(m *testing.M) {
	randutil.SeedForTests()
	leaktest.TestMainWithLeakCheck(m)
}
コード例 #5
0
ファイル: main_test.go プロジェクト: danieldeb/cockroach
func TestMain(m *testing.M) {
	tracing.SetTestTracing()
	leaktest.TestMainWithLeakCheck(m)
}