Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Apr 10, 2024
1 parent 085b3b0 commit 23a8796
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/Service/Indexer/InternalResourceIndexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ public function setUp(): void
$this->aborter,
$this->indexerConfigurationLoader,
'test-source',
$this->logger,
$this->lockFactory,
$this->logger
);
}

Expand Down Expand Up @@ -435,8 +435,10 @@ public function testLock(): void
{
$this->logger->expects($this->once())
->method('notice')
->with('Indexer with source "test-source" is already running');
$lock = $this->lockFactory->createLock('indexer.test-source');
->with('Indexer is already running', [
'index' => 'test'
]);
$lock = $this->lockFactory->createLock('indexer.test');
try {
$lock->acquire();
$this->indexer->index();
Expand Down

0 comments on commit 23a8796

Please sign in to comment.