Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
727fdb9a7d | ||
|
|
5670edb269 |
@@ -58,14 +58,13 @@ func readLogLines(t *testing.T, logs *bytes.Buffer) []map[string]any {
|
|||||||
return lines
|
return lines
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestImageRoutes_ClientGoneWhileWaitingAnswers499 checks that both image
|
// TestImageRoutes_ClientGoneAnswers499 checks that both image routes answer
|
||||||
// routes answer 499 to a request whose client goes away while it waits for an
|
// 499 to a request whose client goes away while its image is being made. A
|
||||||
// image another request is making. A first request's fetch is held, so the
|
// first request's fetch is held, so the image is being made, and a second
|
||||||
// image is being made, and a second request for the same image waits for it
|
// request for the same image waits for it until its client goes away. The
|
||||||
// until its client goes away. The second request must be logged once at info
|
// second request must be logged once at info level with its request ID and
|
||||||
// level with its request ID and the source host and path. Nothing may be
|
// the source host and path. Nothing may be logged at error level.
|
||||||
// logged at error level.
|
func TestImageRoutes_ClientGoneAnswers499(t *testing.T) {
|
||||||
func TestImageRoutes_ClientGoneWhileWaitingAnswers499(t *testing.T) {
|
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
const requestID = "test-request-id"
|
const requestID = "test-request-id"
|
||||||
|
|||||||
Reference in new issue
Block a user