Skip to content

Commit

Permalink
Fix flakey image-optimizer test (#33957)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 3, 2022
1 parent 740f908 commit ce9c6b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file not shown.
5 changes: 2 additions & 3 deletions test/integration/image-optimizer/test/index.test.js
Expand Up @@ -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'
Expand Down

0 comments on commit ce9c6b7

Please sign in to comment.