-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: run tests on different port #2578
Conversation
8143b1e
to
78d2844
Compare
internal/integration/actions.go
Outdated
@@ -170,7 +172,7 @@ func Exec(cmd string, args ...string) Action { | |||
func ExecWithExpectedOutput(want string, cmd string, args ...string) Action { | |||
return func(t testing.TB, ic TestContext) { | |||
Infof("Executing: %s %s", cmd, shellquote.Join(args...)) | |||
output, err := ftlexec.Capture(ic, ic.workDir, cmd, args...) | |||
output, err := ftlexec.CaptureWithEnv(ic, ic.workDir, cmd, []string{"FTL_ENDPOINT=http://127.0.0.1:" + TestPort}, args...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than having to do this, let's just set FTL_ENDPOINT in Run() with t.Setenv()
then it's just set everywhere by default.
afd8805
to
844229f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for this to work it will also need the ability to use a database other than "ftl" :\
This should stop tests from interferring with ftl dev fixes #2577
844229f
to
0927770
Compare
closing for now, as it is not a priority and turned out to require more time than I expected |
This should stop tests from interferring with ftl dev
fixes #2577