mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
address review and fix tests
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
80645a591a
commit
e2ab9bf4af
3 changed files with 5 additions and 3 deletions
|
|
@ -186,6 +186,7 @@ class CheckSetupControllerTest extends TestCase {
|
|||
'hasValidTransactionIsolationLevel',
|
||||
'hasFileinfoInstalled',
|
||||
'hasWorkingFileLocking',
|
||||
'hasDBFileLocking',
|
||||
'getLastCronInfo',
|
||||
'getSuggestedOverwriteCliURL',
|
||||
'getCurlVersion',
|
||||
|
|
@ -504,7 +505,7 @@ class CheckSetupControllerTest extends TestCase {
|
|||
->willReturn(true);
|
||||
$this->checkSetupController
|
||||
->expects($this->once())
|
||||
->method('hasDBileLocking')
|
||||
->method('hasDBFileLocking')
|
||||
->willReturn(true);
|
||||
$this->checkSetupController
|
||||
->expects($this->once())
|
||||
|
|
@ -608,6 +609,7 @@ class CheckSetupControllerTest extends TestCase {
|
|||
'hasValidTransactionIsolationLevel' => true,
|
||||
'hasFileinfoInstalled' => true,
|
||||
'hasWorkingFileLocking' => true,
|
||||
'hasDBFileLocking' => true,
|
||||
'suggestedOverwriteCliURL' => '',
|
||||
'cronInfo' => [
|
||||
'diffInSeconds' => 123,
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@
|
|||
}
|
||||
if(data.hasDBFileLocking) {
|
||||
messages.push({
|
||||
msg: t('core', 'The database is used for transactional file locking. This will lead to performance issues. Use redis for transactional file locking to improve the performance. See the {linkstart}documentation ↗{linkend} for more information.')
|
||||
msg: t('core', 'The database is used for transactional file locking. To enhance performance, please configure memcache, if available. See the {linkstart}documentation ↗{linkend} for more information.')
|
||||
.replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + OC.theme.docPlaceholderUrl.replace('PLACEHOLDER', 'admin-transactional-locking') + '">')
|
||||
.replace('{linkend}', '</a>'),
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_INFO
|
||||
|
|
|
|||
|
|
@ -687,7 +687,7 @@ describe('OC.SetupChecks tests', function() {
|
|||
|
||||
async.done(function( data, s, x ){
|
||||
expect(data).toEqual([{
|
||||
msg: 'The database is used for transactional file locking. This will lead to performance issues. Use redis for transactional file locking to improve the performance. See the <a target="_blank" rel="noreferrer noopener" class="external" href="https://docs.example.org/admin-transactional-locking">documentation ↗</a> for more information.',
|
||||
msg: 'The database is used for transactional file locking. To enhance performance, please configure memcache, if available. See the <a target="_blank" rel="noreferrer noopener" class="external" href="https://docs.example.org/admin-transactional-locking">documentation ↗</a> for more information.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_INFO
|
||||
}]);
|
||||
done();
|
||||
|
|
|
|||
Loading…
Reference in a new issue