Skip to content

Commit

Permalink
Merge branch 'main' into ca
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Aug 27, 2024
2 parents 9653788 + f4417ae commit 644f33a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/gocert/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func main() {
log.SetOutput(os.Stderr)
log.SetOutput(os.Stdout)
configFilePtr := flag.String("config", "", "The config file to be provided to the server")
flag.Parse()
if *configFilePtr == "" {
Expand Down
4 changes: 2 additions & 2 deletions cmd/gocert/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ func TestGoCertFail(t *testing.T) {
}
flag.CommandLine = flag.NewFlagSet(tc.Name, flag.ExitOnError)
cmd := exec.Command("gocert", tc.Args...)
stderr, _ := cmd.StderrPipe()
stdout, _ := cmd.StdoutPipe()

if err := cmd.Start(); err != nil {
t.Errorf("Failed running command")
}

slurp, _ := io.ReadAll(stderr)
slurp, _ := io.ReadAll(stdout)

if err := cmd.Wait(); err == nil {
t.Errorf("Command did not fail")
Expand Down

0 comments on commit 644f33a

Please sign in to comment.