diff options
author | Joas Schilling <coding@schilljs.com> | 2023-03-30 15:02:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-05-03 22:43:36 +0200 |
commit | b91957e3df058b5d22b9d2bb7c0e464749e4e22d (patch) | |
tree | a1927cb13763b90d1b9fedac607802fb7fc3d5b3 /tests | |
parent | df5283ad05f8ffa1a0fe979429746ca071a54326 (diff) | |
download | nextcloud-server-b91957e3df058b5d22b9d2bb7c0e464749e4e22d.tar.gz nextcloud-server-b91957e3df058b5d22b9d2bb7c0e464749e4e22d.zip |
fix(dav): Abort requests with 429 instead of waiting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/User/SessionTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php index e0afb5330d9..2af48d8330c 100644 --- a/tests/lib/User/SessionTest.php +++ b/tests/lib/User/SessionTest.php @@ -362,7 +362,7 @@ class SessionTest extends \Test\TestCase { ->willReturn('192.168.0.1'); $this->throttler ->expects($this->once()) - ->method('sleepDelay') + ->method('sleepDelayOrThrowOnMax') ->with('192.168.0.1'); $this->throttler ->expects($this->any()) @@ -427,7 +427,7 @@ class SessionTest extends \Test\TestCase { ->willReturn('192.168.0.1'); $this->throttler ->expects($this->once()) - ->method('sleepDelay') + ->method('sleepDelayOrThrowOnMax') ->with('192.168.0.1'); $this->throttler ->expects($this->any()) @@ -472,7 +472,7 @@ class SessionTest extends \Test\TestCase { ->willReturn('192.168.0.1'); $this->throttler ->expects($this->once()) - ->method('sleepDelay') + ->method('sleepDelayOrThrowOnMax') ->with('192.168.0.1'); $this->throttler ->expects($this->any()) @@ -1085,7 +1085,7 @@ class SessionTest extends \Test\TestCase { ->willReturn('192.168.0.1'); $this->throttler ->expects($this->exactly(2)) - ->method('sleepDelay') + ->method('sleepDelayOrThrowOnMax') ->with('192.168.0.1'); $this->throttler ->expects($this->any()) @@ -1135,7 +1135,7 @@ class SessionTest extends \Test\TestCase { ->willReturn('192.168.0.1'); $this->throttler ->expects($this->exactly(2)) - ->method('sleepDelay') + ->method('sleepDelayOrThrowOnMax') ->with('192.168.0.1'); $this->throttler ->expects($this->any()) |