Skip to content

Commit

Permalink
Fix TestIncludeExcludeTableRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
Jijun Gao committed May 10, 2024
1 parent 73c2805 commit 16ba343
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions canal/canal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ func TestIncludeExcludeTableRegex(t *testing.T) {
require.False(t, c.checkTableMatch("mysql.canal_test_inner"))

cfg.IncludeTableRegex = nil
c = new(Canal)
c.cfg = cfg
require.Nil(t, c.initTableFilter())
require.True(t, c.checkTableMatch("test.canal_test"))
require.False(t, c.checkTableMatch("test.canal_test_inner"))
require.False(t, c.checkTableMatch("mysql.canal_test_inner"))
Expand Down

0 comments on commit 16ba343

Please sign in to comment.