mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
noot
This commit is contained in:
parent
926fb82f6b
commit
edf4168c8e
2 changed files with 2 additions and 2 deletions
|
@ -201,7 +201,7 @@ func (tc *Tester) startServer() error {
|
|||
|
||||
// start inprocess caddy server
|
||||
go func() {
|
||||
caddycmd.MainForTesting("caddy", "run", "--config", tc.configFileName, "--adapter", "caddyfile")
|
||||
caddycmd.MainForTesting("run", "--config", tc.configFileName, "--adapter", "caddyfile")
|
||||
}()
|
||||
// wait for caddy admin api to start. it should happen quickly.
|
||||
for retries := 10; retries > 0 && isCaddyAdminRunning() != nil; retries-- {
|
||||
|
|
|
@ -94,7 +94,7 @@ func MainForTesting(args ...string) error {
|
|||
Version: rootCmd.Version,
|
||||
}
|
||||
tmpRootCmp.SetArgs(args)
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
if err := tmpRootCmp.Execute(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue