From 9a279de1bf89281149e3b19dd705140c3dd98796 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Wed, 4 Sep 2024 15:34:59 +1000 Subject: [PATCH] tmp --- internal/integration/harness.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/integration/harness.go b/internal/integration/harness.go index ed106335b2..396e4da1a6 100644 --- a/internal/integration/harness.go +++ b/internal/integration/harness.go @@ -210,12 +210,13 @@ func run(t *testing.T, actionsOrOptions ...ActionOrOption) { var controller ftlv1connect.ControllerServiceClient var console pbconsoleconnect.ConsoleServiceClient if opts.startController { - controller = rpc.Dial(ftlv1connect.NewControllerServiceClient, "http://localhost:8892", log.Debug) - console = rpc.Dial(pbconsoleconnect.NewConsoleServiceClient, "http://localhost:8892", log.Debug) - Infof("Starting ftl cluster") ctx = startProcess(ctx, t, filepath.Join(binDir, "ftl"), "serve", "--recreate") } + if opts.startController || opts.kube { + controller = rpc.Dial(ftlv1connect.NewControllerServiceClient, "http://localhost:8892", log.Debug) + console = rpc.Dial(pbconsoleconnect.NewConsoleServiceClient, "http://localhost:8892", log.Debug) + } testData := filepath.Join(cwd, "testdata", language) if opts.testDataDir != "" { @@ -234,7 +235,7 @@ func run(t *testing.T, actionsOrOptions ...ActionOrOption) { kube: opts.kube, } - if opts.startController { + if opts.startController || opts.kube { ic.Controller = controller ic.Console = console