Skip to content

Commit

Permalink
extension: fix some wrong code for extension test (#45656)
Browse files Browse the repository at this point in the history
ref #38788
  • Loading branch information
lcwangchao authored Jul 28, 2023
1 parent 8f1882f commit 086952e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/event_listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ func TestExtensionStmtEvents(t *testing.T) {
return l.DB < r.DB || (l.DB == r.DB && l.Table < r.Table)
})
sort.Slice(record.tables, func(i, j int) bool {
l := subCase.tables[i]
r := subCase.tables[j]
l := record.tables[i]
r := record.tables[j]
return l.DB < r.DB || (l.DB == r.DB && l.Table < r.Table)
})
require.Equal(t, subCase.tables, record.tables)
Expand Down

0 comments on commit 086952e

Please sign in to comment.