From 09a2dd231a6fef6d9b6128bf16fca6b932194d0c Mon Sep 17 00:00:00 2001 From: stoletniy Date: Thu, 2 Nov 2017 14:56:44 +0300 Subject: [PATCH] Fix an off-by-one error in some timezones [MAILPOET-1186] --- tests/unit/Subscription/ThrottlingTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/Subscription/ThrottlingTest.php b/tests/unit/Subscription/ThrottlingTest.php index f4e7309a27..eaf9637aad 100644 --- a/tests/unit/Subscription/ThrottlingTest.php +++ b/tests/unit/Subscription/ThrottlingTest.php @@ -11,7 +11,7 @@ class ThrottlingTest extends \MailPoetTest { $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; expect(Throttling::throttle())->equals(false); expect(Throttling::throttle())->equals(60); - for($i = 0; $i < 11; $i++) { + for($i = 1; $i <= 10; $i++) { $ip = SubscriberIP::create(); $ip->ip = '127.0.0.1'; $ip->created_at = Carbon::now()->subMinutes($i);