Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not sleep() while testing #14

Open
ahoiroman opened this issue Dec 20, 2024 · 0 comments
Open

Do not sleep() while testing #14

ahoiroman opened this issue Dec 20, 2024 · 0 comments

Comments

@ahoiroman
Copy link

ahoiroman commented Dec 20, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant