From a45b2c2ab29ca84152ee56ac7afa013b3cd2b3ce Mon Sep 17 00:00:00 2001 From: Nigel Heron Date: Thu, 8 Jun 2017 12:48:12 -0400 Subject: [PATCH] Use floor instead of round to match navtiming plugin --- tests/test-templates/spa/19-autoxhr-during-nav-alwayssendxhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-templates/spa/19-autoxhr-during-nav-alwayssendxhr.js b/tests/test-templates/spa/19-autoxhr-during-nav-alwayssendxhr.js index 449ce1aa3..933f892cb 100644 --- a/tests/test-templates/spa/19-autoxhr-during-nav-alwayssendxhr.js +++ b/tests/test-templates/spa/19-autoxhr-during-nav-alwayssendxhr.js @@ -129,7 +129,7 @@ BOOMR_test.templates.SPA["19-autoxhr-during-nav-alwayssendxhr"] = function() { var st = BOOMR.window.performance.timing.navigationStart; for (var beaconProp in BEACON_VAR_RT_MAP) { - var resTime = Math.round(res[BEACON_VAR_RT_MAP[beaconProp]] + st); + var resTime = Math.floor(res[BEACON_VAR_RT_MAP[beaconProp]] + st); assert.equal( b[beaconProp],