Skip to content

Commit fe881d9

Browse files
committed
chore: fix go-fmt and tests
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
1 parent d82cf5f commit fe881d9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

web/api/v1/search_filters_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
package v1
1515

1616
import (
17+
"fmt"
1718
"strconv"
19+
"strings"
1820
"sync"
1921
"testing"
2022

web/api/v1/search_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
"github.com/prometheus/prometheus/scrape"
3737
"github.com/prometheus/prometheus/storage"
3838
"github.com/prometheus/prometheus/tsdb"
39+
"github.com/prometheus/prometheus/util/annotations"
3940
)
4041

4142
// newSearchTestAPI creates a minimal API suitable for search endpoint testing.
@@ -1120,6 +1121,7 @@ func TestSearchStreamFirstBatchError(t *testing.T) {
11201121
var lastTrailer searchTrailer
11211122
require.NoError(t, json.Unmarshal(lines[len(lines)-1], &lastTrailer))
11221123
require.Equal(t, "error", lastTrailer.Status, "stream must terminate with an error line, not a success trailer")
1124+
}
11231125

11241126
// TestStreamSearchResultsWarningsSorted verifies that warnings emitted in the
11251127
// first NDJSON batch are sorted (so the on-wire order is deterministic) and

0 commit comments

Comments
 (0)