[Groonga-commit] groonga/gcs [master] Variable event is needed

Back to archive index

Yoji SHIDARA null+****@clear*****
Wed Nov 14 13:28:07 JST 2012


Yoji SHIDARA	2012-11-14 13:28:07 +0900 (Wed, 14 Nov 2012)

  New Revision: 0186586f0540ea8003ff9e04ba724887e0330413
  https://github.com/groonga/gcs/commit/0186586f0540ea8003ff9e04ba724887e0330413

  Log:
    Variable event is needed

  Modified files:
    tools/scenario-runner.js

  Modified: tools/scenario-runner.js (+3 -2)
===================================================================
--- tools/scenario-runner.js    2012-11-14 13:20:51 +0900 (4d3d040)
+++ tools/scenario-runner.js    2012-11-14 13:28:07 +0900 (7997de4)
@@ -57,10 +57,11 @@ Runner.prototype._processScenario = function(scenario, callback) {
       self._processScenario(scenario, callback);
     } else {
       var elapsedTime = Date.now() - scenario.start;
-      self.emit('scenario:finish', {
+      var event = {
         elapsedTime: elapsedTime,
         scenario: scenario
-      });
+      };
+      self.emit('scenario:finish', event);
       if (callback)
         callback(null, event);
     }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index