From a1ea8a27e6d3688cf694dfa9ce1d67d4c7174bad Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 15 Aug 2013 22:20:04 +0200 Subject: [PATCH] test: update tests after internal api change Commit 0aa1335 changes the way timeout events are dispatched. Update two tests that still used the old way. --- test/message/timeout_throw.out | 2 +- test/pummel/test-timer-wrap.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/message/timeout_throw.out b/test/message/timeout_throw.out index f6e207e..46d9cd2 100644 --- a/test/message/timeout_throw.out +++ b/test/message/timeout_throw.out @@ -3,4 +3,4 @@ ^ ReferenceError: undefined_reference_error_maker is not defined at null._onTimeout (*test*message*timeout_throw.js:*:*) - at Timer.listOnTimeout [as ontimeout] (timers.js:*:*) + at Timer.listOnTimeout (timers.js:*:*) diff --git a/test/pummel/test-timer-wrap.js b/test/pummel/test-timer-wrap.js index fbf82d5..1ddea72 100644 --- a/test/pummel/test-timer-wrap.js +++ b/test/pummel/test-timer-wrap.js @@ -24,12 +24,13 @@ var assert = require('assert'); var timeouts = 0; var Timer = process.binding('timer_wrap').Timer; +var kOnTimeout = Timer.kOnTimeout; var t = new Timer(); t.start(1000, 0); -t.ontimeout = function() { +t[kOnTimeout] = function() { timeouts++; console.log('timeout'); t.close(); -- 2.7.4