Skip to content

Commit a5e5a8a

Browse files
committed
Fixing testcases
1 parent f9368c0 commit a5e5a8a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/postgres/generator_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,12 +602,12 @@ func TestGeneratedAllTypesSQLBuilderFiles(t *testing.T) {
602602

603603
testutils.AssertFileNamesEqual(t, modelDir, "all_types.go", "all_types_view.go", "employee.go", "link.go",
604604
"mood.go", "person.go", "person_phone.go", "weird_names_table.go", "level.go", "user.go", "floats.go", "people.go",
605-
"components.go", "vulnerabilities.go", "all_types_materialized_view.go", "sample_ranges.go")
605+
"components.go", "vulnerabilities.go", "all_types_materialized_view.go", "sample_ranges.go", "sample_arrays.go")
606606
testutils.AssertFileContent(t, modelDir+"/all_types.go", allTypesModelContent)
607607

608608
testutils.AssertFileNamesEqual(t, tableDir, "all_types.go", "employee.go", "link.go",
609609
"person.go", "person_phone.go", "weird_names_table.go", "user.go", "floats.go", "people.go", "table_use_schema.go",
610-
"components.go", "vulnerabilities.go", "sample_ranges.go")
610+
"components.go", "vulnerabilities.go", "sample_ranges.go", "sample_arrays.go")
611611
testutils.AssertFileContent(t, tableDir+"/all_types.go", allTypesTableContent)
612612
testutils.AssertFileContent(t, tableDir+"/sample_ranges.go", sampleRangeTableContent)
613613

tests/postgres/scan_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,6 @@ func TestScanIntoCustomBaseTypes(t *testing.T) {
954954
type MyFloat32 float32
955955
type MyFloat64 float64
956956
type MyString string
957-
type MyStringArray pq.StringArray
958957
type MyTime = time.Time
959958

960959
type film struct {
@@ -969,13 +968,13 @@ func TestScanIntoCustomBaseTypes(t *testing.T) {
969968
ReplacementCost MyFloat64
970969
Rating *model.MpaaRating
971970
LastUpdate MyTime
972-
SpecialFeatures MyStringArray
971+
SpecialFeatures pq.StringArray
973972
Fulltext MyString
974973
}
975974

976975
// We'll skip special features, because it's a slice and it does not implement sql.Scanner
977976
stmt := SELECT(
978-
Film.AllColumns.Except(Film.SpecialFeatures),
977+
Film.AllColumns,
979978
).FROM(
980979
Film,
981980
).ORDER_BY(

0 commit comments

Comments
 (0)