Skip to content

Commit 907685f

Browse files
committed
TASK: Fix tests
1 parent 8838500 commit 907685f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Tests/Behavior/Features/Bootstrap/FeatureContext.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Behat\Behat\Context\Context;
44
use Behat\Gherkin\Node\PyStringNode;
55
use Flowpack\DecoupledContentStore\ContentReleaseManager;
6+
use Flowpack\DecoupledContentStore\Core\ConcurrentBuildLockService;
67
use Flowpack\DecoupledContentStore\Core\Domain\ValueObject\ContentReleaseIdentifier;
78
use Flowpack\DecoupledContentStore\Core\Domain\ValueObject\PrunnerJobId;
89
use Flowpack\DecoupledContentStore\Core\RedisKeyService;
@@ -40,7 +41,6 @@
4041
use Neos\Utility\Arrays;
4142
use Neos\Utility\ObjectAccess;
4243
use PHPUnit\Framework\Assert;
43-
use Psr\Log\Test\TestLogger;
4444
use Symfony\Component\Console\Output\BufferedOutput;
4545
use Symfony\Component\Yaml\Yaml;
4646

@@ -153,6 +153,8 @@ public function iCreateAContentRelease($contentReleaseIdentifier)
153153
$prunnerJobId = PrunnerJobId::fromString("...");
154154
$logger = ContentReleaseLogger::fromSymfonyOutput($bufferedOutput, $contentReleaseIdentifier);
155155
$redisContentReleaseService->createContentRelease($contentReleaseIdentifier, $prunnerJobId, $logger);
156+
$concurrentBuildLockService = $this->getObjectManager()->get(ConcurrentBuildLockService::class);
157+
$concurrentBuildLockService->ensureAllOtherInProgressContentReleasesWillBeTerminated($contentReleaseIdentifier);
156158
echo $bufferedOutput->fetch();
157159
}
158160

@@ -406,13 +408,8 @@ public function iFlushTheContentCacheDependingOnTheModifiedNodes()
406408
{
407409
$contentCacheFlusher = $this->getObjectManager()->get(ContentCacheFlusher::class);
408410

409-
$testLogger = new TestLogger();
410-
ObjectAccess::setProperty($contentCacheFlusher, 'systemLogger', $testLogger, true);
411411
$contentCacheFlusher->shutdownObject();
412412
ObjectAccess::setProperty($contentCacheFlusher, 'tagsToFlush', [], true);
413-
foreach ($testLogger->records as $record) {
414-
echo $record['message'] . "\n";
415-
}
416413
}
417414

418415
/**

0 commit comments

Comments
 (0)