From 6bc750130c7e541c2f69439679760a94d092d288 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 10 Mar 2023 11:10:03 +0100 Subject: [PATCH] robot: Delete duplicate test suite registration (#1091) Signed-off-by: mudler --- internal/agent/agent.go | 2 +- internal/agent/install_test.go | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/internal/agent/agent.go b/internal/agent/agent.go index 992e9c8..576753b 100644 --- a/internal/agent/agent.go +++ b/internal/agent/agent.go @@ -16,7 +16,7 @@ import ( "github.com/nxadm/tail" ) -// setup needs edgevpn and k3s installed locally (both k3s and k3s-agent systemd services). +// Run starts the agent provider emitting the bootstrap event. func Run(opts ...Option) error { o := &Options{} if err := o.Apply(opts...); err != nil { diff --git a/internal/agent/install_test.go b/internal/agent/install_test.go index 2359071..ecf7ec1 100644 --- a/internal/agent/install_test.go +++ b/internal/agent/install_test.go @@ -2,10 +2,10 @@ package agent import ( "context" + "os" + "github.com/kairos-io/kairos/pkg/config" "gopkg.in/yaml.v3" - "os" - "testing" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -47,8 +47,3 @@ var _ = Describe("prepareConfiguration", func() { Expect(os.IsNotExist(err)) }) }) - -func TestPrepareConfiguration(t *testing.T) { - RegisterFailHandler(Fail) - RunSpecs(t, "prepareConfiguration Suite") -}