Skip to content

Commit 624c3cb

Browse files
committed
fix binlog_rows_query_log_events apply option for test
1 parent 4978b87 commit 624c3cb

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

docker-compose.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,3 @@ services:
1515
ports:
1616
- 3307:3307
1717
command: mysqld --log-bin=mysql-bin.log --server-id 1 --binlog-format=row --gtid_mode=on --enforce-gtid-consistency=on --log_slave_updates -P 3307
18-
19-
percona-5.7-binlog-rows-query-events:
20-
image: percona:5.7
21-
environment:
22-
MYSQL_ALLOW_EMPTY_PASSWORD: true
23-
ports:
24-
- 3308:3308
25-
command: mysqld --log-bin=mysql-bin.log --server-id 1 --binlog-format=row --binlog-rows-query-log-events=on --gtid_mode=on --enforce-gtid-consistency=on --log_slave_updates -P 3308

pymysqlreplication/tests/test_basic.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,11 @@ def test_parsing(self):
10051005

10061006
class TestRowsQueryLogEvents(base.PyMySQLReplicationTestCase):
10071007
def setUp(self):
1008-
super(TestRowsQueryLogEvents, self).setUp(port=3308)
1008+
super().setUp()
1009+
self.execute("SET global binlog_rows_query_log_events=1")
1010+
1011+
def tearDown(self):
1012+
self.execute("SET global binlog_rows_query_log_events=0")
10091013

10101014
def test_rows_query_log_event(self):
10111015
self.stream.close()

0 commit comments

Comments
 (0)