MCPcopy
hub / github.com/prometheus/prometheus / TestBlockingWriteClient

Struct TestBlockingWriteClient

storage/remote/queue_manager_test.go:1240–1242  ·  view source on GitHub ↗

TestBlockingWriteClient is a queue_manager WriteClient which will block on any calls to Store(), until the request's Context is cancelled, at which point the `numCalls` property will contain a count of how many times Store() was called.

Source from the content-addressed store, hash-verified

1238// point the `numCalls` property will contain a count of how many times Store()
1239// was called.
1240type TestBlockingWriteClient struct {
1241 numCalls atomic.Uint64
1242}
1243
1244func NewTestBlockedWriteClient() *TestBlockingWriteClient {
1245 return &TestBlockingWriteClient{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected