Browse Source

Merge pull request #8851 from kjinan/main

typos correct
pull/8752/head^2
Julien Pivotto 4 years ago committed by GitHub
parent
commit
8ccde7f45e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tsdb/exemplar_test.go
  2. 2
      tsdb/index/index_test.go

2
tsdb/exemplar_test.go

@ -26,7 +26,7 @@ import (
"github.com/prometheus/prometheus/storage" "github.com/prometheus/prometheus/storage"
) )
// Tests the same exemplar cases as AddExemplar, but specfically the ValidateExemplar function so it can be relied on externally. // Tests the same exemplar cases as AddExemplar, but specifically the ValidateExemplar function so it can be relied on externally.
func TestValidateExemplar(t *testing.T) { func TestValidateExemplar(t *testing.T) {
exs, err := NewCircularExemplarStorage(2, nil) exs, err := NewCircularExemplarStorage(2, nil)
require.NoError(t, err) require.NoError(t, err)

2
tsdb/index/index_test.go

@ -217,7 +217,7 @@ func TestIndexRW_Postings(t *testing.T) {
} }
require.NoError(t, p.Err()) require.NoError(t, p.Err())
// The label incides are no longer used, so test them by hand here. // The label indices are no longer used, so test them by hand here.
labelIndices := map[string][]string{} labelIndices := map[string][]string{}
require.NoError(t, ReadOffsetTable(ir.b, ir.toc.LabelIndicesTable, func(key []string, off uint64, _ int) error { require.NoError(t, ReadOffsetTable(ir.b, ir.toc.LabelIndicesTable, func(key []string, off uint64, _ int) error {
if len(key) != 1 { if len(key) != 1 {

Loading…
Cancel
Save