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

Function TestNoCompactionWhenCompactionRange0

tempodb/tempodb_test.go:128–135  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

126}
127
128func TestNoCompactionWhenCompactionRange0(t *testing.T) {
129 _, _, c, _ := testConfig(t, 0)
130
131 err := c.EnableCompaction(context.Background(), &CompactorConfig{
132 MaxCompactionRange: 0,
133 }, &mockSharder{}, &mockOverrides{})
134 require.Error(t, err)
135}
136
137func TestBlockSharding(t *testing.T) {
138 // push a req with some traceID

Callers

nothing calls this directly

Calls 3

testConfigFunction · 0.70
EnableCompactionMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected