This commit is contained in:
2021-02-04 00:34:07 +03:00
parent 875cb8b542
commit 15296f4b61
28 changed files with 695 additions and 975 deletions

View File

@@ -5,6 +5,7 @@ declare(strict_types=1);
use Nsq\Exception\NsqError;
use Nsq\Producer;
use PHPUnit\Framework\TestCase;
use function Amp\Promise\wait;
final class ProducerTest extends TestCase
{
@@ -17,7 +18,9 @@ final class ProducerTest extends TestCase
$this->expectExceptionMessage($exceptionMessage);
$producer = new Producer('tcp://localhost:4150');
$producer->pub($topic, $body);
wait($producer->connect());
wait($producer->pub($topic, $body));
}
/**