mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 05:53:38 +02:00
EventEmitter constructor was not being called in many places. It did work due to the EventEmitter3 constructor being empty, but we can't rely on that.
This commit is contained in:
@@ -3,6 +3,7 @@ var util = require('util')
|
||||
var EventEmitter = require('eventemitter3').EventEmitter
|
||||
|
||||
function FailCounter(threshold, time) {
|
||||
EventEmitter.call(this)
|
||||
this.threshold = threshold
|
||||
this.time = time
|
||||
this.values = []
|
||||
|
||||
Reference in New Issue
Block a user