Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/MySQLReplication/BinLog/BinLogSocketConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ private function setBinLogDump(): void
$data .= $binFileName;

$this->socket->writeToSocket($data);
$this->getResponse();

$binLogCurrent->setBinLogPosition($binFilePos);
$binLogCurrent->setBinFileName($binFileName);
Expand Down
2 changes: 2 additions & 0 deletions tests/Integration/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use MySQLReplication\Event\DTO\EventDTO;
use MySQLReplication\Event\DTO\FormatDescriptionEventDTO;
use MySQLReplication\Event\DTO\QueryDTO;
use MySQLReplication\Event\DTO\RotateDTO;
use MySQLReplication\Event\DTO\TableMapDTO;
use MySQLReplication\MySQLReplicationFactory;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -61,6 +62,7 @@ protected function setUp(): void

$this->connect();

self::assertInstanceOf(RotateDTO::class, $this->getEvent());
self::assertInstanceOf(FormatDescriptionEventDTO::class, $this->getEvent());
self::assertInstanceOf(QueryDTO::class, $this->getEvent());
self::assertInstanceOf(QueryDTO::class, $this->getEvent());
Expand Down
1 change: 1 addition & 0 deletions tests/Integration/BasicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ private function connectWithProvidedEventDispatcher(EventDispatcherInterface $ev
$this->connection->executeStatement('USE ' . $this->database);
$this->connection->executeStatement('SET SESSION sql_mode = \'\';');

self::assertInstanceOf(RotateDTO::class, $this->getEvent());
self::assertInstanceOf(FormatDescriptionEventDTO::class, $this->getEvent());
self::assertInstanceOf(QueryDTO::class, $this->getEvent());
self::assertInstanceOf(QueryDTO::class, $this->getEvent());
Expand Down