Skip to content

Commit 34463b0

Browse files
authored
Merge pull request #23391 from nextcloud/fix/23245/fix-asynccommandbus-test-failure
Overwrite also the new command bus name to execute them in sync in th…
2 parents 14af224 + f5a52e9 commit 34463b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/lib/TestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use OC\Command\QueueBus;
2828
use OC\Files\Filesystem;
2929
use OC\Template\Base;
30+
use OCP\Command\IBus;
3031
use OCP\DB\QueryBuilder\IQueryBuilder;
3132
use OCP\Defaults;
3233
use OCP\IDBConnection;
@@ -119,6 +120,7 @@ protected function setUp(): void {
119120
// overwrite the command bus with one we can run ourselves
120121
$this->commandBus = new QueueBus();
121122
$this->overwriteService('AsyncCommandBus', $this->commandBus);
123+
$this->overwriteService(IBus::class, $this->commandBus);
122124

123125
// detect database access
124126
self::$wasDatabaseAllowed = true;

0 commit comments

Comments
 (0)