From 029a53ce6e841d101fabbbd4370de1a6f9f6a767 Mon Sep 17 00:00:00 2001 From: Aaron Harper Date: Wed, 7 Aug 2024 13:40:28 -0400 Subject: [PATCH] Maybe Dev Server works --- tests/main_test.go | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/tests/main_test.go b/tests/main_test.go index d68559f9..129e93b9 100644 --- a/tests/main_test.go +++ b/tests/main_test.go @@ -58,42 +58,7 @@ func startDevServer() (func() error, error) { // Run in a new process group so we can kill the process and its children cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true} - // Read and print stderr - stderr, err := cmd.StderrPipe() - if err != nil { - return nil, fmt.Errorf("failed to create stderr pipe: %w", err) - } - go func() { - buf := make([]byte, 1024) - for { - n, err := stderr.Read(buf) - if n > 0 { - fmt.Print(string(buf[:n])) - } - if err != nil { - break - } - } - }() - - stdout, err := cmd.StdoutPipe() - if err != nil { - return nil, fmt.Errorf("failed to create stdout pipe: %w", err) - } - go func() { - buf := make([]byte, 1024) - for { - n, err := stdout.Read(buf) - if n > 0 { - fmt.Print(string(buf[:n])) - } - if err != nil { - break - } - } - }() - - err = cmd.Start() + err := cmd.Start() if err != nil { return nil, fmt.Errorf("failed to start command: %w", err) }