diff --git a/systemtest/main_test.go b/systemtest/main_test.go index 9fb7473e452..c2a0bbbd937 100644 --- a/systemtest/main_test.go +++ b/systemtest/main_test.go @@ -18,49 +18,15 @@ package systemtest import ( - "fmt" "log" "os" "testing" - - "golang.org/x/sync/errgroup" ) func TestMain(m *testing.M) { - var errg errgroup.Group - - errg.Go(func() error { - log.Println("INFO: starting stack containers...") - if err := StartStackContainers(); err != nil { - return fmt.Errorf("failed to start stack containers: %w", err) - } - return nil - }) - - if err := errg.Wait(); err != nil { - log.Fatal(err) - } - - errg.Go(func() error { - log.Println("INFO: cleaning up Elasticsearch...") - if err := cleanupElasticsearch(); err != nil { - return fmt.Errorf("failed to cleanup Elasticsearch: %w", err) - } - - return nil - }) - - errg.Go(func() error { - log.Println("INFO: setting up fleet...") - if err := InitFleet(); err != nil { - return fmt.Errorf("failed to setup fleet: %w", err) - } - - return nil - }) - - if err := errg.Wait(); err != nil { - log.Fatal(err) + log.Println("INFO: starting stack containers...") + if err := StartStackContainers(); err != nil { + log.Fatalf("failed to start stack containers: %v", err) } log.Println("INFO: running system tests...")