diff --git a/test/js/gz.test.js b/test/js/gz.test.js index a38f505af..e6ca13a9b 100644 --- a/test/js/gz.test.js +++ b/test/js/gz.test.js @@ -72,7 +72,7 @@ test('unpacked gzip', function(t) { test('unhandled gzip', function(t) { - mbgl.on('message', function(msg) { + mbgl.once('message', function(msg) { t.ok(msg, 'emits error'); t.equal(msg.class, 'ParseTile'); t.equal(msg.severity, 'ERROR');