summaryrefslogtreecommitdiff
path: root/test/pummel
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-08-15 22:20:04 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-08-15 22:20:15 +0200
commita1ea8a27e6d3688cf694dfa9ce1d67d4c7174bad (patch)
treefb017ed523c45dcf0a903397fa77019bbdb7bff0 /test/pummel
parentab5dabf876cca785314f198c6e4e47d5a3bcb46a (diff)
downloadnode-new-a1ea8a27e6d3688cf694dfa9ce1d67d4c7174bad.tar.gz
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.
Diffstat (limited to 'test/pummel')
-rw-r--r--test/pummel/test-timer-wrap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pummel/test-timer-wrap.js b/test/pummel/test-timer-wrap.js
index fbf82d505d..1ddea727eb 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();