Skip to content

Commit 654aecb

Browse files
committed
Fix test for another hash function
1 parent 2444fc0 commit 654aecb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

schema/naming_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func TestFormatNameWithStringLongerThan63Characters(t *testing.T) {
193193
ns := NamingStrategy{IdentifierMaxLength: 63}
194194

195195
formattedName := ns.formatName("prefix", "table", "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString")
196-
if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVer180f2c67" {
196+
if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVerb463f8ff" {
197197
t.Errorf("invalid formatted name generated, got %v", formattedName)
198198
}
199199
}
@@ -202,7 +202,7 @@ func TestFormatNameWithStringLongerThan64Characters(t *testing.T) {
202202
ns := NamingStrategy{IdentifierMaxLength: 64}
203203

204204
formattedName := ns.formatName("prefix", "table", "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString")
205-
if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVery180f2c67" {
205+
if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryb463f8ff" {
206206
t.Errorf("invalid formatted name generated, got %v", formattedName)
207207
}
208208
}

schema/relationship_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ func TestParseConstraintNameWithSchemaQualifiedLongTableName(t *testing.T) {
985985
t.Fatalf("Failed to parse schema")
986986
}
987987

988-
expectedConstraintName := "fk_my_schema_a_very_very_very_very_very_very_very_very_l4db13eec"
988+
expectedConstraintName := "fk_my_schema_a_very_very_very_very_very_very_very_very_l46bfd72a"
989989
constraint := s.Relationships.Relations["Author"].ParseConstraint()
990990

991991
if constraint.Name != expectedConstraintName {

0 commit comments

Comments
 (0)