MCPcopy
hub / github.com/grafana/tempo / requireLastCommitEquals

Function requireLastCommitEquals

modules/blockbuilder/blockbuilder_test.go:1070–1076  ·  view source on GitHub ↗

nolint: revive

(t testing.TB, ctx context.Context, client *kgo.Client, expectedOffset int64)

Source from the content-addressed store, hash-verified

1068
1069// nolint: revive
1070func requireLastCommitEquals(t testing.TB, ctx context.Context, client *kgo.Client, expectedOffset int64) {
1071 offsets, err := kadm.NewClient(client).FetchOffsetsForTopics(ctx, testConsumerGroup, testTopic)
1072 require.NoError(t, err)
1073 offset, ok := offsets.Lookup(testTopic, testPartition)
1074 require.True(t, ok)
1075 require.Equal(t, expectedOffset, offset.At)
1076}
1077
1078func BenchmarkBlockBuilder(b *testing.B) {
1079 var (

Calls 1

EqualMethod · 0.45

Tested by

no test coverage detected