diff --git a/integration/get_test.go b/integration/get_test.go index f399066..11ff951 100644 --- a/integration/get_test.go +++ b/integration/get_test.go @@ -61,6 +61,6 @@ func getTestHTTPSClient() *http.Client { func getSize(stream io.Reader) int { buf := new(bytes.Buffer) - buf.ReadFrom(stream) + _, _ = buf.ReadFrom(stream) return buf.Len() } diff --git a/integration/main_test.go b/integration/main_test.go index e8f670f..fa5c55a 100644 --- a/integration/main_test.go +++ b/integration/main_test.go @@ -25,6 +25,8 @@ func TestMain(m *testing.M) { time.Sleep(30 * time.Second) m.Run() + + os.Exit(0) } func startServer(ctx context.Context) error { @@ -42,7 +44,11 @@ func startServer(ctx context.Context) error { app.Action = cmd.Serve app.Flags = cmd.ServeFlags - go app.RunContext(ctx, args) + go func() { + if err := app.RunContext(ctx, args); err != nil { + log.Fatalf("run server error: %v", err) + } + }() return nil }