mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +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:
parent
181829b55c
commit
d806d4fe54
4 changed files with 5 additions and 0 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue