mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-05 21:57:09 +02:00
[TESTS] Rules: remove brittle TestNewGroup
It broke on different implementation of 'NewNopLogger'. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
b2e0d3f16c
commit
95d47c0512
@ -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…
Reference in New Issue
Block a user