MCPcopy Create free account
hub / github.com/cortexproject/cortex / pushSingleSampleAtTime

Function pushSingleSampleAtTime

pkg/ingester/ingester_test.go:5744–5749  ·  view source on GitHub ↗
(t *testing.T, i *Ingester, ts int64)

Source from the content-addressed store, hash-verified

5742}
5743
5744func pushSingleSampleAtTime(t *testing.T, i *Ingester, ts int64) {
5745 ctx := user.InjectOrgID(context.Background(), userID)
5746 req, _ := mockWriteRequest(t, labels.FromStrings("__name__", "test"), 0, ts)
5747 _, err := i.Push(ctx, req)
5748 require.NoError(t, err)
5749}
5750
5751func TestHeadCompactionOnStartup(t *testing.T) {
5752 // Create a temporary directory for TSDB

Calls 2

mockWriteRequestFunction · 0.70
PushMethod · 0.65

Tested by

no test coverage detected