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
|
||||
}
|
||||
|
||||
// TestImageRoutes_ClientGoneAnswers499 checks that both image routes answer
|
||||
// 499 to a request whose client goes away while its image is being made. A
|
||||
// first request's fetch is held, so the image is being made, and a second
|
||||
// request for the same image waits for it until its client goes away. The
|
||||
// second request must be logged once at info level with its request ID and
|
||||
// the source host and path. Nothing may be logged at error level.
|
||||
func TestImageRoutes_ClientGoneAnswers499(t *testing.T) {
|
||||
// TestImageRoutes_ClientGoneWhileWaitingAnswers499 checks that both image
|
||||
// routes answer 499 to a request whose client goes away while it waits for an
|
||||
// image another request is making. A first request's fetch is held, so the
|
||||
// image is being made, and a second request for the same image waits for it
|
||||
// until its client goes away. The second request must be logged once at info
|
||||
// level with its request ID and the source host and path. Nothing may be
|
||||
// logged at error level.
|
||||
func TestImageRoutes_ClientGoneWhileWaitingAnswers499(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
const requestID = "test-request-id"
|
||||
|
||||
Reference in New Issue
Block a user