]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit tests
authorJoas Schilling <coding@schilljs.com>
Wed, 19 Aug 2020 09:20:12 +0000 (11:20 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 19 Aug 2020 09:20:36 +0000 (11:20 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/lib/User/SessionTest.php

index 48c4785bf7155949d10444b801873fc0d4f9f838..8fd94ffc004950df7a3cd1fc76afd156c45f4307 100644 (file)
@@ -1264,12 +1264,8 @@ class SessionTest extends \Test\TestCase {
                $this->throttler
                        ->expects($this->once())
                        ->method('sleepDelay')
-                       ->with('192.168.0.1');
-               $this->throttler
-                       ->expects($this->any())
-                       ->method('getDelay')
                        ->with('192.168.0.1')
-                       ->willReturn(0);
+                       ->willReturn(5);
                $this->timeFactory
                        ->expects($this->any())
                        ->method('getTime')
@@ -1318,12 +1314,8 @@ class SessionTest extends \Test\TestCase {
                $this->throttler
                        ->expects($this->once())
                        ->method('sleepDelay')
-                       ->with('192.168.0.1');
-               $this->throttler
-                       ->expects($this->any())
-                       ->method('getDelay')
                        ->with('192.168.0.1')
-                       ->willReturn(0);
+                       ->willReturn(5);
                $this->timeFactory
                        ->expects($this->any())
                        ->method('getTime')