Skip to content

Commit 4935e4e

Browse files
author
Dane Springmeyer
committed
fix test to avoid depending on old endpoint
1 parent e28d621 commit 4935e4e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/copy.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,12 @@ test('tilelive copy: list auto', function(t) {
201201
});
202202

203203
test('tilelive copy: missing liststream', function(t) {
204-
var src = 'tilejson+http://api.mapbox.com/v3/mapbox.world-bright.json';
204+
var src = new Timedsource({});
205+
src.flag = false;
206+
src.close = function(callback) {
207+
this.flag = true;
208+
callback();
209+
};
205210
var dst = path.join(tmp, crypto.randomBytes(12).toString('hex') + '.tilelivecopy_liststream.mbtiles');
206211
var options = {};
207212
options.type = 'list';

0 commit comments

Comments
 (0)