Fix test for another hash function
This commit is contained in:
		
							parent
							
								
									2444fc0d82
								
							
						
					
					
						commit
						654aecbe29
					
				| @ -193,7 +193,7 @@ func TestFormatNameWithStringLongerThan63Characters(t *testing.T) { | ||||
| 	ns := NamingStrategy{IdentifierMaxLength: 63} | ||||
| 
 | ||||
| 	formattedName := ns.formatName("prefix", "table", "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString") | ||||
| 	if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVer180f2c67" { | ||||
| 	if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVerb463f8ff" { | ||||
| 		t.Errorf("invalid formatted name generated, got %v", formattedName) | ||||
| 	} | ||||
| } | ||||
| @ -202,7 +202,7 @@ func TestFormatNameWithStringLongerThan64Characters(t *testing.T) { | ||||
| 	ns := NamingStrategy{IdentifierMaxLength: 64} | ||||
| 
 | ||||
| 	formattedName := ns.formatName("prefix", "table", "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString") | ||||
| 	if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVery180f2c67" { | ||||
| 	if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryb463f8ff" { | ||||
| 		t.Errorf("invalid formatted name generated, got %v", formattedName) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| @ -985,7 +985,7 @@ func TestParseConstraintNameWithSchemaQualifiedLongTableName(t *testing.T) { | ||||
| 		t.Fatalf("Failed to parse schema") | ||||
| 	} | ||||
| 
 | ||||
| 	expectedConstraintName := "fk_my_schema_a_very_very_very_very_very_very_very_very_l4db13eec" | ||||
| 	expectedConstraintName := "fk_my_schema_a_very_very_very_very_very_very_very_very_l46bfd72a" | ||||
| 	constraint := s.Relationships.Relations["Author"].ParseConstraint() | ||||
| 
 | ||||
| 	if constraint.Name != expectedConstraintName { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Igor Stepanov
						Igor Stepanov