var heartbeats = require('../main');
var heart = heartbeats.createHeart(1000);

heart.createEvent(1, function() {
    console.log('testing unreferencing...');
});

setTimeout(function() {}, 2000);

// should exit after 2 seconds

@@ -77,92 +77,8 @@
 );%0A%0A
-heart.createEvent(1, function() %7B%0A    console.log('testing unreferencing...');%0A%7D);%0A%0A
 setT

Modify spawn and unref test to work if no events exist