diff --git a/tests/Feature/Reverb/ServerTest.php b/tests/Feature/Reverb/ServerTest.php index 923cba6a..e2760a04 100644 --- a/tests/Feature/Reverb/ServerTest.php +++ b/tests/Feature/Reverb/ServerTest.php @@ -126,12 +126,12 @@ $this->triggerEvent( 'test-channel', - 'TestEvent', + 'App\\Events\\TestEvent', ['foo' => 'bar'] ); foreach (await(all([$promiseOne, $promiseTwo, $promiseThree])) as $response) { - expect($response)->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"test-channel"}'); + expect($response)->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"test-channel"}'); } }); @@ -142,11 +142,11 @@ $this->triggerEvent( 'presence-test-channel', - 'TestEvent', + 'App\\Events\\TestEvent', ['foo' => 'bar'] ); - expect(await($promise))->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); + expect(await($promise))->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); }); it('can respond to a ping', function () { @@ -299,11 +299,11 @@ $this->triggerEvent( 'presence-test-channel', - 'TestEvent', + 'App\\Events\\TestEvent', ['foo' => 'bar'] ); - expect(await($promise))->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); + expect(await($promise))->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); }); it('can publish and subscribe to a client whisper', function () { diff --git a/tests/ReverbTestCase.php b/tests/ReverbTestCase.php index 5e15ec66..03b748eb 100644 --- a/tests/ReverbTestCase.php +++ b/tests/ReverbTestCase.php @@ -234,7 +234,7 @@ public function messagePromise(WebSocket $connection) $promise->resolve((string) $message); }); - return timeout($promise->promise(), 0.1, $this->loop) + return timeout($promise->promise(), 0.5, $this->loop) ->then( fn ($message) => $message, fn (TimeoutException $error) => false