Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Sep 4, 2024
1 parent e6502f7 commit 9a279de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/integration/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand All @@ -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

Expand Down

0 comments on commit 9a279de

Please sign in to comment.