more linting issues

This commit is contained in:
6543 2022-06-10 19:35:59 +02:00
parent 7c68a59f39
commit de9c37d72b
2 changed files with 8 additions and 2 deletions

View file

@ -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()
}

View file

@ -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
}