Skip to content

Commit f5ff4d9

Browse files
authored
Fix test_allowed_event_list, MariadbGtidEvent added (julien-duponchelle#375)
Currently the `TestBasicBinLogStreamReader::test_allowed_event_list` test fails, with the actual number being one more than the expected number. The reason for that is the recent addition of `MariadbGtidEvent` commit 7fd706d. This commit adapts the expected numbers in the test to reflect that change.
1 parent f76201e commit f5ff4d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymysqlreplication/tests/test_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def ignoredEvents(self):
2525
return [GtidEvent]
2626

2727
def test_allowed_event_list(self):
28-
self.assertEqual(len(self.stream._allowed_event_list(None, None, False)), 14)
29-
self.assertEqual(len(self.stream._allowed_event_list(None, None, True)), 13)
30-
self.assertEqual(len(self.stream._allowed_event_list(None, [RotateEvent], False)), 13)
28+
self.assertEqual(len(self.stream._allowed_event_list(None, None, False)), 15)
29+
self.assertEqual(len(self.stream._allowed_event_list(None, None, True)), 14)
30+
self.assertEqual(len(self.stream._allowed_event_list(None, [RotateEvent], False)), 14)
3131
self.assertEqual(len(self.stream._allowed_event_list([RotateEvent], None, False)), 1)
3232

3333
def test_read_query_event(self):

0 commit comments

Comments
 (0)