MCPcopy Create free account
hub / github.com/PostHog/duckgres / waitForLogCount

Method waitForLogCount

tests/controlplane/controlplane_test.go:248–257  ·  view source on GitHub ↗
(substr string, want int, timeout time.Duration)

Source from the content-addressed store, hash-verified

246
247func (h *cpHarness) cleanup(t *testing.T) {
248 t.Helper()
249 defer func() {
250 if t.Failed() {
251 t.Logf("Control plane logs:\n%s", h.logBuf.String())
252 }
253 }()
254
255 if h.cmd.Process == nil {
256 return
257 }
258
259 // The CP was started with Setpgid: true, so it and all descendants
260 // (upgraded new CPs, all workers) share a process group. Killing

Calls 4

AddMethod · 0.80
NowMethod · 0.80
CountMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected