aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-05-29 16:09:07 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-07-12 16:18:02 +0200
commitf8aeef7ae9ea97e85318839f8d569e8765cad958 (patch)
treedf3b5aa5710904adfaefd7001dd825726dd69d88 /tests
parentc193c0d46670fdda79f74523eb0f616175dd513b (diff)
downloadnextcloud-server-f8aeef7ae9ea97e85318839f8d569e8765cad958.tar.gz
nextcloud-server-f8aeef7ae9ea97e85318839f8d569e8765cad958.zip
Lock SCSS so we only run 1 job at a time
This is bit hacky but a start to lock the SCSS compiler properly Retry during 10s then give up Properly get error message Do not clear locks and properly debug scss caching Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Template/SCSSCacherTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php
index d84b96773bc..d4d60c2dc1b 100644
--- a/tests/lib/Template/SCSSCacherTest.php
+++ b/tests/lib/Template/SCSSCacherTest.php
@@ -528,10 +528,10 @@ class SCSSCacherTest extends \Test\TestCase {
->willReturn([$file]);
$cache = $this->createMock(ICache::class);
- $this->cacheFactory->expects($this->once())
+ $this->cacheFactory->expects($this->exactly(2))
->method('createDistributed')
->willReturn($cache);
- $cache->expects($this->once())
+ $cache->expects($this->exactly(2))
->method('clear')
->with('');
$this->appData->expects($this->once())