mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-06-13 15:47:38 +08:00
test: improve serve startup failure diagnostics
This commit is contained in:
parent
d12e887858
commit
7db3d32d7b
1 changed files with 6 additions and 1 deletions
|
|
@ -49,8 +49,13 @@ func TestServeServerHTTPModeIgnoresTLSConfig(t *testing.T) {
|
|||
time.Sleep(20 * time.Millisecond)
|
||||
}
|
||||
if err != nil {
|
||||
select {
|
||||
case serveErr := <-errCh:
|
||||
t.Fatalf("expected HTTP server to accept plain HTTP with TLSConfig set: request error=%v, serve error=%v", err, serveErr)
|
||||
default:
|
||||
t.Fatalf("expected HTTP server to accept plain HTTP with TLSConfig set: %v", err)
|
||||
}
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue