Skip to content

Commit

Permalink
Fix "incomplete" test fixture to be valid gzip of incomplete data (#167)
Browse files Browse the repository at this point in the history
The zlib module in Node 5 now throws if it sees an unexpected end of
file, so the current test that the tilelive decode correctly throws
on incomplete JSON currently fails because the unzip part of the
pipeline is throwing instead.
  • Loading branch information
tomhughes authored and Ryan Clark committed May 15, 2016
1 parent 6855e96 commit efdfe7d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
- "0.10"
- "0.12"
- "4"
- "5"

script:
- npm test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"tilelive-copy": "./bin/tilelive-copy"
},
"engines": {
"node": ">= 0.10.0 < 5"
"node": ">= 0.10.0"
},
"scripts": {
"test": "eslint --no-eslintrc -c .eslintrc lib/*.js && tape test/*.test.js",
Expand Down
Binary file modified test/fixtures/cereal-incomplete.gz
Binary file not shown.

0 comments on commit efdfe7d

Please sign in to comment.