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

Function TestInstanceSearchNoData

modules/livestore/instance_search_test.go:342–358  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

340}
341
342func TestInstanceSearchNoData(t *testing.T) {
343 i, ls := defaultInstance(t)
344
345 req := &tempopb.SearchRequest{
346 Query: "{}",
347 }
348
349 sr, err := i.Search(t.Context(), req)
350 assert.NoError(t, err)
351 require.Len(t, sr.Traces, 0)
352
353 err = services.StopAndAwaitTerminated(t.Context(), ls)
354 if errors.Is(err, context.Canceled) {
355 return
356 }
357 require.NoError(t, err)
358}
359
360// TestInstanceSearchMaxBytesPerTagValuesQueryReturnsPartial confirms that SearchTagValues returns
361// partial results if the bytes of the found tag value exceeds the MaxBytesPerTagValuesQuery limit

Callers

nothing calls this directly

Calls 4

defaultInstanceFunction · 0.85
SearchMethod · 0.65
ContextMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected