We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95b157 commit 0804f1dCopy full SHA for 0804f1d
test/events.js
@@ -454,10 +454,11 @@ tap.test('Pause/Resume Binlog', (test) => {
454
});
455
456
457
- tap.test('Pausing binlog stops events', (test) => {
+ test.test('Pausing binlog stops events', (test) => {
458
const events = [];
459
const zongji = new ZongJi(settings.connection);
460
test.teardown(() => zongji.stop());
461
+ let paused = false;
462
463
zongji.on('ready', () => {
464
zongji.pause();
@@ -485,7 +486,6 @@ tap.test('Pause/Resume Binlog', (test) => {
485
486
includeEvents: ['tablemap', 'writerows']
487
488
- let paused = false;
489
zongji.on('binlog', (evt) => {
490
if (paused) {
491
// We don't expect any events while paused
0 commit comments