From 7e7d14b61be140f9e9bfb93b54d51da617305884 Mon Sep 17 00:00:00 2001 From: Aphral Griffin Date: Mon, 20 May 2024 11:36:26 +0100 Subject: [PATCH] fix unit tests --- internal/plugin/plugin_manager_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/plugin/plugin_manager_test.go b/internal/plugin/plugin_manager_test.go index 6e5eeb95e7..98944b48dd 100644 --- a/internal/plugin/plugin_manager_test.go +++ b/internal/plugin/plugin_manager_test.go @@ -9,6 +9,8 @@ import ( "log/slog" "testing" + "github.com/nginx/agent/v3/internal/resource" + "github.com/nginx/agent/v3/internal/bus" "github.com/nginx/agent/v3/internal/config" "github.com/stretchr/testify/assert" @@ -30,6 +32,7 @@ func TestLoadPLugins(t *testing.T) { expected: []bus.Plugin{ &ProcessMonitor{}, &Resource{}, + &resource.Resource{}, &Config{}, }, }, { @@ -39,6 +42,7 @@ func TestLoadPLugins(t *testing.T) { }, expected: []bus.Plugin{ &Resource{}, + &resource.Resource{}, &Metrics{}, &Config{}, },