Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f788e05b7 | ||
|
|
fc4c6b1a90 |
@@ -58,13 +58,14 @@ func readLogLines(t *testing.T, logs *bytes.Buffer) []map[string]any {
|
|||||||
return lines
|
return lines
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestImageRoutes_ClientGoneAnswers499 checks that both image routes answer
|
// TestImageRoutes_ClientGoneWhileWaitingAnswers499 checks that both image
|
||||||
// 499 to a request whose client goes away while its image is being made. A
|
// routes answer 499 to a request whose client goes away while it waits for an
|
||||||
// first request's fetch is held, so the image is being made, and a second
|
// image another request is making. A first request's fetch is held, so the
|
||||||
// request for the same image waits for it until its client goes away. The
|
// image is being made, and a second request for the same image waits for it
|
||||||
// second request must be logged once at info level with its request ID and
|
// until its client goes away. The second request must be logged once at info
|
||||||
// the source host and path. Nothing may be logged at error level.
|
// level with its request ID and the source host and path. Nothing may be
|
||||||
func TestImageRoutes_ClientGoneAnswers499(t *testing.T) {
|
// logged at error level.
|
||||||
|
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