Fix flakey image-optimizer test (#33957)
x-ref: https://github.com/vercel/next.js/runs/5057168022?check_suite_focus=true x-ref: https://github.com/vercel/next.js/runs/5055917244?check_suite_focus=true x-ref: https://github.com/vercel/next.js/runs/5043791152?check_suite_focus=true
This commit is contained in:
parent
740f908aa4
commit
ce9c6b79f1
2 changed files with 2 additions and 3 deletions
BIN
test/integration/image-optimizer/app/public/png-as-octet-stream
Normal file
BIN
test/integration/image-optimizer/app/public/png-as-octet-stream
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
|
@ -478,9 +478,8 @@ function runTests({
|
|||
})
|
||||
|
||||
it('should automatically detect image type when content-type is octet-stream', async () => {
|
||||
const url =
|
||||
'https://image-optimization-test.vercel.app/png-as-octet-stream'
|
||||
const resOrig = await fetch(url)
|
||||
const url = '/png-as-octet-stream'
|
||||
const resOrig = await fetchViaHTTP(appPort, url)
|
||||
expect(resOrig.status).toBe(200)
|
||||
expect(resOrig.headers.get('Content-Type')).toBe(
|
||||
'application/octet-stream'
|
||||
|
|
Loading…
Reference in a new issue