MCPcopy
hub / github.com/prometheus/prometheus / testDefaultQueueConfig

Function testDefaultQueueConfig

storage/remote/queue_manager_test.go:314–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312}
313
314func testDefaultQueueConfig() config.QueueConfig {
315 cfg := config.DefaultQueueConfig
316 // For faster unit tests we don't wait default 5 seconds.
317 cfg.BatchSendDeadline = model.Duration(100 * time.Millisecond)
318 return cfg
319}
320
321func TestMetadataDelivery(t *testing.T) {
322 c, m := newTestClientAndQueueManager(t, defaultFlushDeadline, remoteapi.WriteV1MessageType)

Callers 6

TestReshardRaceWithStopFunction · 0.85
TestReshardPartialBatchFunction · 0.85
TestQueueFilledDeadlockFunction · 0.85
BenchmarkSampleSendFunction · 0.85

Calls 1

DurationMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…