From a05bfc13a72da8e937d1c942ebb623c999f56310 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Tue, 9 Jan 2018 09:56:28 +0100 Subject: [PATCH] Add description of the assertion This test fails a bit randomly, at least in travis. A description of the assertion helps to understand what's going on. --- test/bench-vector.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bench-vector.test.js b/test/bench-vector.test.js index b6e982b..365c160 100644 --- a/test/bench-vector.test.js +++ b/test/bench-vector.test.js @@ -179,7 +179,7 @@ tape('vector bench async', function(assert) { console.log("Skipping rate assertion, since we are running in debug mode"); } else { assert.equal(rate_async > 50, true, 'render ' + total + ' tiles @ ' + rate_async.toFixed(1) + ' tiles/sec'); - assert.equal(rate_async + 20 > rate_deferred, true); // should be at least roughly the same speed or faster + assert.equal(rate_async + 20 > rate_deferred, true, (rate_async+20).toFixed(1) + ' (async) > ' + rate_deferred.toFixed(1) + ' (deferred) tiles/sec'); // should be at least roughly the same speed or faster } assert.equal(total, 341);