From 0ea5c8d737546efa2643eb56fd528d485965dfa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Thu, 20 Aug 2015 11:04:10 +0100 Subject: [PATCH] test: remove test-timers-first-fire According to the documentation, "io.js makes no guarantees about the exact timing of when the callback will fire" (https://iojs.org/api/timers.html#timers_settimeout_callback_delay_arg), hence this test is not necessary. PR-URL: https://github.com/nodejs/node/pull/2458 Reviewed-By: Ben Noordhuis Reviewed-By: Alexis Campailla --- test/parallel/test-timers-first-fire.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 test/parallel/test-timers-first-fire.js diff --git a/test/parallel/test-timers-first-fire.js b/test/parallel/test-timers-first-fire.js deleted file mode 100644 index 88460e1e3acb12..00000000000000 --- a/test/parallel/test-timers-first-fire.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; -var common = require('../common'); -var assert = require('assert'); - -var TIMEOUT = 50; -var last = process.hrtime(); -setTimeout(function() { - var hr = process.hrtime(last); - var ms = (hr[0] * 1e3) + (hr[1] / 1e6); - var delta = ms - TIMEOUT; - console.log('timer fired in', delta); - assert.ok(delta > -0.5, 'Timer fired early'); -}, TIMEOUT);