diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-19 12:23:13 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-19 14:15:48 +0100 |
commit | 6b7ffcd6a8ee5c451c33ddd34ec11f45e9632c84 (patch) | |
tree | 85070149e079651254e60bd682c08b7355a7d832 /apps/user_ldap/tests | |
parent | 406750552e1332f4419cd0c8b77891c1e8b4aee1 (diff) | |
download | nextcloud-server-6b7ffcd6a8ee5c451c33ddd34ec11f45e9632c84.tar.gz nextcloud-server-6b7ffcd6a8ee5c451c33ddd34ec11f45e9632c84.zip |
Fixed backup host logic
Now forcing backup host applies to both main and background.
And background will fallback to backup if not responding.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r-- | apps/user_ldap/tests/ConnectionTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/ConnectionTest.php b/apps/user_ldap/tests/ConnectionTest.php index 3b771c6d04f..b4e26c922ed 100644 --- a/apps/user_ldap/tests/ConnectionTest.php +++ b/apps/user_ldap/tests/ConnectionTest.php @@ -121,7 +121,7 @@ class ConnectionTest extends \Test\TestCase { ->willReturn(0); // Not called often enough? Then, the fallback to the backup server is broken. - $this->connection->expects($this->exactly(4)) + $this->connection->expects($this->exactly(2)) ->method('getFromCache') ->with('overrideMainServer') ->will($this->onConsecutiveCalls(false, false, true, true)); |