Ver código fonte

Merge pull request #7111 from heyitsanthony/e2e-ctl-trace

e2e: dump stacks on ctlTest timeout
Anthony Romano 9 anos atrás
pai
commit
af5b8190d2
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      e2e/ctl_v3_test.go

+ 1 - 1
e2e/ctl_v3_test.go

@@ -163,7 +163,7 @@ func testCtl(t *testing.T, testFunc func(ctlCtx), opts ...ctlOption) {
 	}
 	select {
 	case <-time.After(timeout):
-		t.Fatalf("test timed out after %v", timeout)
+		testutil.FatalStack(t, fmt.Sprintf("test timed out after %v", timeout))
 	case <-donec:
 	}
 }