Merge branch 'fix/app-connections-count' of github.com:beyondcode/laravel-websockets into fix/app-connections-count

This commit is contained in:
Alex Renoki 2020-09-04 22:35:38 +03:00
commit cadd2602cb
3 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@ namespace BeyondCode\LaravelWebSockets\Tests\Channels;
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message; use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
use BeyondCode\LaravelWebSockets\Tests\TestCase; use BeyondCode\LaravelWebSockets\Tests\TestCase;
use Illuminate\Support\Facades\Redis;
class PresenceChannelReplicationTest extends TestCase class PresenceChannelReplicationTest extends TestCase
{ {

View File

@ -7,7 +7,6 @@ use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\ConnectionsOverCapacity; use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\ConnectionsOverCapacity;
use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\OriginNotAllowed; use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\OriginNotAllowed;
use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\UnknownAppKey; use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\UnknownAppKey;
use Illuminate\Support\Facades\Redis;
class ConnectionTest extends TestCase class ConnectionTest extends TestCase
{ {

View File

@ -274,7 +274,7 @@ abstract class TestCase extends BaseTestCase
// Replace the publish and subscribe clients with a Mocked // Replace the publish and subscribe clients with a Mocked
// factory lazy instance on boot. // factory lazy instance on boot.
$this->app->singleton(ReplicationInterface::class, function () use ($replicationDriver) { $this->app->singleton(ReplicationInterface::class, function () {
$client = config( $client = config(
"websockets.replication.{$replicationDriver}.client", "websockets.replication.{$replicationDriver}.client",
\BeyondCode\LaravelWebSockets\PubSub\Drivers\LocalClient::class \BeyondCode\LaravelWebSockets\PubSub\Drivers\LocalClient::class