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,7 +49,12 @@ func TestServeServerHTTPModeIgnoresTLSConfig(t *testing.T) {
|
||||||
time.Sleep(20 * time.Millisecond)
|
time.Sleep(20 * time.Millisecond)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("expected HTTP server to accept plain HTTP with TLSConfig set: %v", err)
|
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()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue