Skip to content

Commit 58bc77a

Browse files
committed
Tests
Signed-off-by: Harshil Gupta <[email protected]>
1 parent 5fe9866 commit 58bc77a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/storage/metricstore/elasticsearch/query_builder_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func TestBuildBoolQuery(t *testing.T) {
5151
params := metricstore.BaseQueryParameters{
5252
ServiceNames: []string{"service1", "service2"},
5353
SpanKinds: []string{"client", "server"},
54+
Tags: map[string]string{"http.status_code": "200"},
5455
}
5556

5657
boolQuery := qb.BuildBoolQuery(params, commonTimeRange)
@@ -63,7 +64,7 @@ func TestBuildBoolQuery(t *testing.T) {
6364
boolClause := queryMap["bool"].(map[string]any)
6465
filterClause := boolClause["filter"].([]any)
6566

66-
require.Len(t, filterClause, 3) // services, span kinds, time range
67+
require.Len(t, filterClause, 4) // services, span kinds, time range
6768
}
6869

6970
func TestBuildLatenciesAggregation(t *testing.T) {

0 commit comments

Comments
 (0)