From 41f87ae687899a49082cb558b1148b65f601fca6 Mon Sep 17 00:00:00 2001 From: James Skeoch Date: Thu, 13 Jun 2024 10:05:20 +0100 Subject: [PATCH] test: test cmd.Execute --- pkg/cmd/upgrade/upgrade_plugins_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/upgrade/upgrade_plugins_test.go b/pkg/cmd/upgrade/upgrade_plugins_test.go index 2895882073..f184e1921a 100644 --- a/pkg/cmd/upgrade/upgrade_plugins_test.go +++ b/pkg/cmd/upgrade/upgrade_plugins_test.go @@ -10,8 +10,8 @@ import ( func TestUpgrade(t *testing.T) { t.Parallel() - _, o := upgrade.NewCmdUpgradePlugins() + cmd, _ := upgrade.NewCmdUpgradePlugins() - err := o.Run() + err := cmd.Execute() require.NoError(t, err, "failed to run upgrade command") }