diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:20 +0000 |
commit | 87d772a7d708fec12f48cd8adc0dedff6e1025da (patch) | |
tree | 1fee344c64cc3f43074a01981e21126c8482a522 /src/go/collectors/go.d.plugin/agent/module/charts_test.go | |
parent | Adding upstream version 1.46.3. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/go/plugin/go.d/agent/module/charts_test.go (renamed from src/go/collectors/go.d.plugin/agent/module/charts_test.go) | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/agent/module/charts_test.go b/src/go/plugin/go.d/agent/module/charts_test.go index 7c35bb33e..b0dcf806f 100644 --- a/src/go/collectors/go.d.plugin/agent/module/charts_test.go +++ b/src/go/plugin/go.d/agent/module/charts_test.go @@ -341,6 +341,9 @@ func TestDim_check(t *testing.T) { dim = &Dim{ID: "id"} dim.ID = "invalid id" assert.Error(t, checkDim(dim)) + + dim = &Dim{ID: "i d", Name: "id"} + assert.NoError(t, checkDim(dim)) } func TestVar_check(t *testing.T) { |