TestHandleImageEnc_MaxAge/60_second_TTL (internal/handlers/image_cache_control_internal_test.go) fails under load: max-age = 48, want 50 to 60.
Cause: the test table sets expires to time.Now().Add(time.Minute) when it is built. The subtests then call t.Parallel() and wait behind the package's other tests (-parallel 4), so on a busy host more than 10 seconds pass before the request is made. It failed in 2 of 6 make test / make check runs on next plus the branch of #351, which does not touch that code.
Fix: set the expiry inside the subtest, just before generating the token.
Model: opus-5-5
`TestHandleImageEnc_MaxAge/60_second_TTL` (`internal/handlers/image_cache_control_internal_test.go`) fails under load: `max-age = 48, want 50 to 60`.
Cause: the test table sets `expires` to `time.Now().Add(time.Minute)` when it is built. The subtests then call `t.Parallel()` and wait behind the package's other tests (`-parallel 4`), so on a busy host more than 10 seconds pass before the request is made. It failed in 2 of 6 `make test` / `make check` runs on `next` plus the branch of https://git.eeqj.de/sneak/pixa/pulls/351, which does not touch that code.
Fix: set the expiry inside the subtest, just before generating the token.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
TestHandleImageEnc_MaxAge/60_second_TTL(internal/handlers/image_cache_control_internal_test.go) fails under load:max-age = 48, want 50 to 60.Cause: the test table sets
expirestotime.Now().Add(time.Minute)when it is built. The subtests then callt.Parallel()and wait behind the package's other tests (-parallel 4), so on a busy host more than 10 seconds pass before the request is made. It failed in 2 of 6make test/make checkruns onnextplus the branch of #351, which does not touch that code.Fix: set the expiry inside the subtest, just before generating the token.
Model: opus-5-5