Fix tests
This commit is contained in:
		
							parent
							
								
									2aca96d147
								
							
						
					
					
						commit
						6b7abc54a2
					
				| @ -253,7 +253,7 @@ func TestParseFieldWithPermission(t *testing.T) { | ||||
| 		{Name: "Name5", DBName: "name5", BindNames: []string{"Name5"}, DataType: schema.String, Tag: `gorm:"<-:update"`, Creatable: false, Updatable: true, Readable: true}, | ||||
| 		{Name: "Name6", DBName: "name6", BindNames: []string{"Name6"}, DataType: schema.String, Tag: `gorm:"<-:create,update"`, Creatable: true, Updatable: true, Readable: true}, | ||||
| 		{Name: "Name7", DBName: "name7", BindNames: []string{"Name7"}, DataType: schema.String, Tag: `gorm:"->:false;<-:create,update"`, Creatable: true, Updatable: true, Readable: false}, | ||||
| 		{Name: "Name8", DBName: "name8", BindNames: []string{"Name8"}, DataType: schema.String, Tag: `gorm:"<->"`, Creatable: false, Updatable: false, Readable: true, IgnoreMigration: true}, | ||||
| 		{Name: "Name8", DBName: "name8", BindNames: []string{"Name8"}, DataType: schema.String, Tag: `gorm:"->;-:migration"`, Creatable: false, Updatable: false, Readable: true, IgnoreMigration: true}, | ||||
| 	} | ||||
| 
 | ||||
| 	for _, f := range fields { | ||||
|  | ||||
| @ -8,10 +8,10 @@ require ( | ||||
| 	github.com/lib/pq v1.6.0 | ||||
| 	github.com/stretchr/testify v1.5.1 | ||||
| 	gorm.io/driver/mysql v1.0.5 | ||||
| 	gorm.io/driver/postgres v1.0.8 | ||||
| 	gorm.io/driver/postgres v1.1.0 | ||||
| 	gorm.io/driver/sqlite v1.1.4 | ||||
| 	gorm.io/driver/sqlserver v1.0.7 | ||||
| 	gorm.io/gorm v1.21.4 | ||||
| 	gorm.io/gorm v1.21.9 | ||||
| ) | ||||
| 
 | ||||
| replace gorm.io/gorm => ../ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jinzhu
						Jinzhu