Преглед изворни кода

e2e: dump stack on ctlTest timeout

Figure out which process is blocking for Elect/Lock test timeouts.
Anthony Romano пре 9 година
родитељ
комит
acfa601075
1 измењених фајлова са 1 додато и 1 уклоњено
  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:
 	}
 }