Skip to content

Commit b398e3e

Browse files
committed
change unit test
1 parent 7f7efb4 commit b398e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqle/driver/mysql/audit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6430,7 +6430,7 @@ func TestDMLCheckSelectRows(t *testing.T) {
64306430
WillReturnRows(sqlmock.NewRows([]string{"type"}).AddRow(executor.ExplainRecordAccessTypeIndex).AddRow("range"))
64316431
handler.ExpectQuery(regexp.QuoteMeta("select count(*) from (SELECT 1 FROM `exist_tb_2` GROUP BY `id`) as t")).
64326432
WillReturnRows(sqlmock.NewRows([]string{"count(*)"}).AddRow("10000000"))
6433-
runSingleRuleInspectCase(rule, t, "", inspect14, "select max(v1) as id, id from exist_tb_2 group by id", newTestResult())
6433+
runSingleRuleInspectCase(rule, t, "", inspect14, "select max(v1) as id, id from exist_tb_2 group by id", newTestResult().addResult(rulepkg.DMLCheckSelectRows))
64346434

64356435
}
64366436

0 commit comments

Comments
 (0)