Function
TestValidateCompactorConfig
tempodb/config_test.go:179–188
· tempodb/config_test.go::TestValidateCompactorConfig
(t *testing.T)
Source from the content-addressed store, hash-verified
| 177 | } |
| 178 | |
| 179 | func TestValidateCompactorConfig(t *testing.T) { |
| 180 | compactorConfig := CompactorConfig{ |
| 181 | MaxCompactionRange: 0, |
| 182 | } |
| 183 | |
| 184 | expected := errors.New("compaction window can't be 0") |
| 185 | actual := compactorConfig.validate() |
| 186 | |
| 187 | require.Equal(t, expected, actual) |
| 188 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected