Merge pull request #5957 from heyitsanthony/wait-panic

testutil, clientv3: wait for panics in txn tests to complete
This commit is contained in:
Anthony Romano
2016-07-18 11:18:23 -07:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -17,9 +17,13 @@ package clientv3
import (
"testing"
"time"
"github.com/coreos/etcd/pkg/testutil"
)
func TestTxnPanics(t *testing.T) {
defer testutil.AfterTest(t)
kv := &kv{}
errc := make(chan string)

View File

@@ -106,6 +106,7 @@ func interestingGoroutines() (gs []string) {
}
stack := strings.TrimSpace(sl[1])
if stack == "" ||
strings.Contains(stack, "runtime/panic.go") ||
strings.Contains(stack, "created by testing.RunTests") ||
strings.Contains(stack, "testing.Main(") ||
strings.Contains(stack, "runtime.goexit") ||