Skip to content

Commit f1e640d

Browse files
committed
Tests: catch potential failures during tile unzip
1 parent c295f06 commit f1e640d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/unit/tile.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,8 @@ describe('Tile', function () {
915915
extractZip(container, { dir: path.dirname(extractTo) })
916916
.then(() => {
917917
assertDeepZoomTiles(directory, 256, 13, done);
918-
});
918+
})
919+
.catch(done);
919920
});
920921
});
921922
});
@@ -945,7 +946,8 @@ describe('Tile', function () {
945946
extractZip(container, { dir: path.dirname(extractTo) })
946947
.then(() => {
947948
assertDeepZoomTiles(directory, 256, 13, done);
948-
});
949+
})
950+
.catch(done);
949951
});
950952
});
951953
});

0 commit comments

Comments
 (0)