diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-19 11:20:12 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-19 11:20:36 +0200 |
commit | 41d8a7e05fe81dc7b15907dabeb8ac758d70907e (patch) | |
tree | 2dfc82ec17cdea6bd742e1d4a9992182483b163d /tests | |
parent | 35a851959195ed4a2674e02208c75c4f27199b08 (diff) | |
download | nextcloud-server-41d8a7e05fe81dc7b15907dabeb8ac758d70907e.tar.gz nextcloud-server-41d8a7e05fe81dc7b15907dabeb8ac758d70907e.zip |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/User/SessionTest.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php index 48c4785bf71..8fd94ffc004 100644 --- a/tests/lib/User/SessionTest.php +++ b/tests/lib/User/SessionTest.php @@ -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') |