From 1dbcdd47d444cd1f26a69208794ea193cb461e0c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 Aug 2025 10:35:28 +0800 Subject: [PATCH] Update test data cleanup to use user_id instead of subject in oauth_test.go - Modified the cleanupTestData function to query by user_id, ensuring consistency with the updated user provider interface. - This change enhances the accuracy of test data cleanup and aligns with recent refactoring efforts in user management. --- openapi/oauth/oauth_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/oauth/oauth_test.go b/openapi/oauth/oauth_test.go index c535c8af..5e1b4e6a 100644 --- a/openapi/oauth/oauth_test.go +++ b/openapi/oauth/oauth_test.go @@ -551,7 +551,7 @@ func cleanupTestData(t *testing.T, service *Service) { // Clean up any remaining test data by patterns _, err := m.DestroyWhere(model.QueryParam{ Wheres: []model.QueryWhere{ - {Column: "subject", OP: "like", Value: "user-%"}, + {Column: "user_id", OP: "like", Value: "user-%"}, }, }) if err != nil {