From 05674f7a381280d3b00b1bd12712a396dc4b63f7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 19 Apr 2024 19:50:06 +0800 Subject: [PATCH] Fix test --- models/migrations/v1_18/v230_test.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/models/migrations/v1_18/v230_test.go b/models/migrations/v1_18/v230_test.go index 017de96703..ff1aa4d751 100644 --- a/models/migrations/v1_18/v230_test.go +++ b/models/migrations/v1_18/v230_test.go @@ -11,12 +11,16 @@ import ( "github.com/stretchr/testify/assert" ) -func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) { - // premigration - type OAuth2Application struct { - ID int64 - } +// premigration +type OAuth2Application struct { + ID int64 +} +func (OAuth2Application) TableName() string { + return "oauth2_application" +} + +func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) { // Prepare and load the testing database x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application)) defer deferable()