Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: György Krajcsovits <[email protected]>
  • Loading branch information
krajorama committed Oct 16, 2024
1 parent bed59db commit b15e54f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/querier/tenantfederation/merge_queryable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func TestMergeQueryable_Select(t *testing.T) {
require.EqualError(t, seriesSet.Err(), tc.expectedQueryErr.Error())
} else {
require.NoError(t, seriesSet.Err())
assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_sample_tenants_queried"))
assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_tenants_queried"))
assertEqualWarnings(t, tc.expectedWarnings, seriesSet.Warnings())
}

Expand Down Expand Up @@ -709,7 +709,7 @@ func TestMergeQueryable_LabelNames(t *testing.T) {
} else {
require.NoError(t, err)
assert.Equal(t, scenario.labelNamesTestCase.expectedLabelNames, labelNames)
assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(scenario.labelNamesTestCase.expectedMetrics), "cortex_querier_federation_sample_tenants_queried"))
assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(scenario.labelNamesTestCase.expectedMetrics), "cortex_querier_federation_tenants_queried"))
assertEqualWarnings(t, scenario.labelNamesTestCase.expectedWarnings, warnings)
}
})
Expand Down Expand Up @@ -900,7 +900,7 @@ func TestMergeQueryable_LabelValues(t *testing.T) {
} else {
require.NoError(t, err)
assert.Equal(t, tc.expectedLabelValues, actLabelValues, fmt.Sprintf("unexpected values for label '%s'", tc.labelName))
assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_sample_tenants_queried"))
assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_tenants_queried"))
assertEqualWarnings(t, tc.expectedWarnings, warnings)
}
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/ingest/partition_offset_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func TestPartitionOffsetClient_FetchPartitionsLastProducedOffsets(t *testing.T)
# HELP cortex_ingest_storage_reader_last_produced_offset_failures_total Total number of failed requests to get the last produced offset.
# TYPE cortex_ingest_storage_reader_last_produced_offset_failures_total counter
cortex_ingest_storage_reader_last_produced_offset_failures_total{partition="mixed"} 0
# HELP cortex_ingest_storage_reader_last_produced_offset_requests_total Total number of requests issued to get the last produced offset.
# TYPE cortex_ingest_storage_reader_last_produced_offset_requests_total counter
cortex_ingest_storage_reader_last_produced_offset_requests_total{partition="mixed"} 4
Expand Down

0 comments on commit b15e54f

Please sign in to comment.