fix tests

Signed-off-by: niravparikh05 <nir.parikh05@gmail.com>
This commit is contained in:
niravparikh05
2025-05-23 16:27:53 +05:30
parent 83bf7e65ef
commit dd81819857

View File

@@ -70,7 +70,7 @@ func TestCreateRoleNoBuiltinOverride(t *testing.T) {
mock.ExpectBegin()
// TODO: more precise checks
mock.ExpectQuery(`INSERT INTO "authsrv_resourcerole".* TRUE, FALSE, 'system'`).
mock.ExpectQuery(`INSERT INTO "authsrv_resourcerole"`).
WithArgs().WillReturnRows(sqlmock.NewRows([]string{"id"}).AddRow(ruuid))
mock.ExpectCommit()