[TESTS] Rules: remove brittle TestNewGroup

It broke on different implementation of 'NewNopLogger'.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
pull/16765/head
Bryan Boreham 3 days ago
parent b2e0d3f16c
commit 95d47c0512
  1. 9
      rules/group_test.go

@ -17,18 +17,9 @@ import (
"testing"
"time"
"github.com/prometheus/common/promslog"
"github.com/stretchr/testify/require"
)
func TestNewGroup(t *testing.T) {
g := NewGroup(GroupOptions{
File: "test-file",
Name: "test-name",
})
require.Equal(t, promslog.NewNopLogger().With("file", "test-file", "group", "test-name"), g.logger)
}
func TestGroup_Equals(t *testing.T) {
tests := map[string]struct {
first *Group

Loading…
Cancel
Save