Skip to content

Commit

Permalink
Add option to override UI port
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Feb 3, 2025
1 parent bfd12ac commit 48f2b59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testsuite/devserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ type DevServerOptions struct {
DBFilename string
// Whether to enable the UI.
EnableUI bool
// Override UI port if EnableUI is true.
// If not provided, a free port will be used.
UIPort string
// Log format - defaults to "pretty".
LogFormat string
// Log level - defaults to "warn".
Expand Down Expand Up @@ -158,6 +161,9 @@ func prepareCommand(options *DevServerOptions, host, port, namespace string) []s
if options.DBFilename != "" {
args = append(args, "--db-filename", options.DBFilename)
}
if options.UIPort != "" {
args = append(args, "--ui-port", options.UIPort)
}
return append(args, options.ExtraArgs...)
}

Expand Down

0 comments on commit 48f2b59

Please sign in to comment.