Skip to content

Commit 334e04f

Browse files
committed
port and version check
1 parent cd35e17 commit 334e04f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
replication-test-mysql-percona:
33
container_name: replication-test-mysql-percona
44
hostname: replication-test-mysql-percona
5-
image: mysql:8.2
5+
image: mysql:8.0
66
platform: linux/amd64
77
command: [
88
'--character-set-server=utf8mb4',
@@ -18,5 +18,5 @@ services:
1818
- MYSQL_ROOT_PASSWORD=root
1919
- MYSQL_DATABASE=mysqlreplication_test
2020
ports:
21-
- "3322:3306/tcp"
21+
- "3306:3306/tcp"
2222
restart: unless-stopped

example/benchmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class benchmark
2525
private const DB_USER = 'root';
2626
private const DB_PASS = 'root';
2727
private const DB_HOST = '127.0.0.1';
28-
private const DB_PORT = 3322;
28+
private const DB_PORT = 3306;
2929

3030
private MySQLReplicationFactory $binLogStream;
3131

example/dump_events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
->withUser('root')
2525
->withHost('0.0.0.0')
2626
->withPassword('root')
27-
->withPort(3322)
27+
->withPort(3306)
2828
->withHeartbeatPeriod(60)
2929
->withEventsIgnore([ConstEventType::HEARTBEAT_LOG_EVENT->value])
3030
->build(),

tests/Integration/BaseCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ protected function setUp(): void
4040
->withUser('root')
4141
->withHost('0.0.0.0')
4242
->withPassword('root')
43-
->withPort(3322)
43+
->withPort(3306)
4444
->withEventsIgnore([ConstEventType::GTID_LOG_EVENT->value]);
4545

4646
$this->connect();
4747

48-
if ($this->checkForVersion(8.4) && $this->mySQLReplicationFactory?->getServerInfo()->isGeneric()) {
48+
if ($this->mySQLReplicationFactory?->getServerInfo()->versionRevision >= 8 && $this->mySQLReplicationFactory?->getServerInfo()->isGeneric()) {
4949
self::assertInstanceOf(RotateDTO::class, $this->getEvent());
5050
}
5151
self::assertInstanceOf(FormatDescriptionEventDTO::class, $this->getEvent());

tests/Integration/BasicTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ private function connectWithProvidedEventDispatcher(EventDispatcherInterface $ev
366366
$this->connection->executeStatement('USE ' . $this->database);
367367
$this->connection->executeStatement('SET SESSION sql_mode = \'\';');
368368

369-
if ($this->checkForVersion(8.4) && $this->mySQLReplicationFactory->getServerInfo()->isGeneric()) {
369+
if ($this->mySQLReplicationFactory->getServerInfo()->versionRevision >= 8 && $this->mySQLReplicationFactory->getServerInfo()->isGeneric()) {
370370
self::assertInstanceOf(RotateDTO::class, $this->getEvent());
371371
}
372372

0 commit comments

Comments
 (0)