mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -08:00
Fixed linter issues
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
parent
229575de0c
commit
56f926c62c
|
@ -650,8 +650,8 @@ func TestCompaction_CompactEmptyBlocks(t *testing.T) {
|
|||
}
|
||||
|
||||
bdir := filepath.Join(dir, id.String())
|
||||
require.NoError(t, os.Mkdir(bdir, 0777))
|
||||
require.NoError(t, os.Mkdir(chunkDir(bdir), 0777))
|
||||
require.NoError(t, os.Mkdir(bdir, 0o777))
|
||||
require.NoError(t, os.Mkdir(chunkDir(bdir), 0o777))
|
||||
|
||||
_, err := writeMetaFile(log.NewNopLogger(), bdir, m)
|
||||
require.NoError(t, err)
|
||||
|
|
|
@ -169,7 +169,7 @@ func BenchmarkQuerierSelect(b *testing.B) {
|
|||
}
|
||||
require.NoError(b, app.Commit())
|
||||
|
||||
bench := func(b *testing.B, br BlockReader, sorted bool, sharding bool) {
|
||||
bench := func(b *testing.B, br BlockReader, sorted, sharding bool) {
|
||||
matcher := labels.MustNewMatcher(labels.MatchEqual, "foo", "bar")
|
||||
for s := 1; s <= numSeries; s *= 10 {
|
||||
b.Run(fmt.Sprintf("%dof%d", s, numSeries), func(b *testing.B) {
|
||||
|
|
|
@ -257,7 +257,6 @@ func openFiles(filenames []string) ([]*os.File, error) {
|
|||
|
||||
for _, fn := range filenames {
|
||||
f, err := os.Open(fn)
|
||||
|
||||
if err != nil {
|
||||
// Close files opened so far.
|
||||
for _, sf := range result {
|
||||
|
|
Loading…
Reference in a new issue