wai-extra-3.1.12 testsuite failure: WaiExtra.Network.Wai.gzip gzip checking of files
juhp opened this issue ยท 8 comments
In the Stackage Nightly build:
Test suite failure for package wai-extra-3.1.12
spec: exited with: ExitFailure 1
:
:
Failures:
test/WaiExtraSpec.hs:313:9:
1) WaiExtra.Network.Wai.gzip gzip checking of files
Expected header "Content-Encoding" to be "gzip", but it was not present
To rerun use: --match "/WaiExtra/Network.Wai/gzip/gzip checking of files/"
Randomized with seed 606399493
Finished in 3.0131 seconds
126 examples, 1 failure
Hmmm, only with the Nightly build? ๐ค
I'll have to run the tests locally to find out what's going on. Will try to come back to this ASAP.
@juhp
I ran stack test wai-extra --resolver=nightly
(Selected resolver: nightly-2022-05-05
) and did not get any failed tests ๐ค any idea if this is me being dumb, or what could cause this?
Okay if it's not reproducible I would say don't worry too much about it for now.
I am also getting the same failure reliably with either wai-extra 3.1.11 or 3.1.12 on Arch Linux. It probably has something to do with #880
Update: Figured it out. The tests run successfully from the git repository but not the hackage tarball because test/json.gz
and test/noprecompress
aren't present in the latter.
Update: Figured it out. The tests run successfully from the git repository but not the hackage tarball because
test/json.gz
andtest/noprecompress
aren't present in the latter.
Ah, so it was me being dumb! Thankfully not in the code ๐คฆ I somehow always forget extra-source-files
๐
Already in lts19 btw:
https://www.stackage.org/lts-19.7/package/wai-extra-3.1.12.1