fix test TestCreateWithInterfaceArrayTypeWithTable
This commit is contained in:
		
							parent
							
								
									0dbcd1cd36
								
							
						
					
					
						commit
						0d183399c9
					
				| @ -826,7 +826,7 @@ func TestCreateWithInterfaceType(t *testing.T) { | ||||
| func TestCreateWithInterfaceArrayTypeWithTable(t *testing.T) { | ||||
| 	user := *GetUser("create", Config{}) | ||||
| 	type UserInterface interface{} | ||||
| 	var userInterface UserInterface = &user | ||||
| 	var userInterface UserInterface = user | ||||
| 
 | ||||
| 	if results := DB.Table("users").Create([]UserInterface{userInterface}); results.Error != nil { | ||||
| 		t.Fatalf("errors happened when create: %v", results.Error) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 KEHyeon
						KEHyeon