mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Fix test
This commit is contained in:
		| @@ -11,12 +11,16 @@ import ( | |||||||
| 	"github.com/stretchr/testify/assert" | 	"github.com/stretchr/testify/assert" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) { | // premigration | ||||||
| 	// premigration | type OAuth2Application struct { | ||||||
| 	type OAuth2Application struct { | 	ID int64 | ||||||
| 		ID int64 | } | ||||||
| 	} |  | ||||||
|  |  | ||||||
|  | func (OAuth2Application) TableName() string { | ||||||
|  | 	return "oauth2_application" | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) { | ||||||
| 	// Prepare and load the testing database | 	// Prepare and load the testing database | ||||||
| 	x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application)) | 	x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application)) | ||||||
| 	defer deferable() | 	defer deferable() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user