pjcalvo / locust-influxdb-listener

LocustIO base project with a custom influxDB listener.
MIT License
26 stars 20 forks source link

Some events are not properly defined. #25

Open pjcalvo opened 1 year ago

pjcalvo commented 1 year ago

Some events that we currently handle are not properly defined an thus we should fix them to make sure the code is clean:

For example:

 def test_stop(self, user_count=None, environment: Environment =None) -> None:
        self.__register_event(self.node_id, 0, 'test_stopped')

If we look at the code from locust this event does not trigger neither user_count nor environment, so there params are basically useless:

test_stop: EventHook """ Fired on each node when a load test is stopped. """

Please only look at those that we currently support. To add new events it is better to separate into new issues.