From 87d772a7d708fec12f48cd8adc0dedff6e1025da Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 10:15:20 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- .../go.d.plugin/agent/confgroup/registry_test.go | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/go/collectors/go.d.plugin/agent/confgroup/registry_test.go (limited to 'src/go/collectors/go.d.plugin/agent/confgroup/registry_test.go') diff --git a/src/go/collectors/go.d.plugin/agent/confgroup/registry_test.go b/src/go/collectors/go.d.plugin/agent/confgroup/registry_test.go deleted file mode 100644 index a63c0ceb1..000000000 --- a/src/go/collectors/go.d.plugin/agent/confgroup/registry_test.go +++ /dev/null @@ -1,44 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -package confgroup - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestRegistry_Register(t *testing.T) { - name := "module" - defaults := Default{ - MinUpdateEvery: 1, - UpdateEvery: 1, - AutoDetectionRetry: 1, - Priority: 1, - } - expected := Registry{ - name: defaults, - } - - actual := Registry{} - actual.Register(name, defaults) - - assert.Equal(t, expected, actual) -} - -func TestRegistry_Lookup(t *testing.T) { - name := "module" - expected := Default{ - MinUpdateEvery: 1, - UpdateEvery: 1, - AutoDetectionRetry: 1, - Priority: 1, - } - reg := Registry{} - reg.Register(name, expected) - - actual, ok := reg.Lookup("module") - - assert.True(t, ok) - assert.Equal(t, expected, actual) -} -- cgit v1.2.3