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

Function TestInstance_cantWriteToWAL

modules/generator/storage/instance_test.go:184–196  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

182}
183
184func TestInstance_cantWriteToWAL(t *testing.T) {
185 var cfg Config
186 cfg.RegisterFlagsAndApplyDefaults("", nil)
187
188 // We are obviously not allowed to write here
189 cfg.Path = "/root"
190
191 // We should be able to attempt to create the instance multiple times
192 _, err := New(&cfg, &mockOverrides{}, "test-tenant", &noopRegisterer{}, log.NewNopLogger())
193 require.Error(t, err)
194 _, err = New(&cfg, &mockOverrides{}, "test-tenant", &noopRegisterer{}, log.NewNopLogger())
195 require.Error(t, err)
196}
197
198func TestInstance_remoteWriteHeaders(t *testing.T) {
199 var err error

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected