Skip to content

Do not sleep() while testing #14

@ahoiroman

Description

@ahoiroman

Hi there,

I am mocking some saloon requests and for those I don't want the rate limit to be applied. My first idea was to create something like this in my connector:

    public function __construct() {
        $this->rateLimitingEnabled = !app()->environment('testing');
    }

Is that something you'd recommend or is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions