@@ -1625,13 +1625,13 @@ func TestAddExtensionsDefaultPgVersion(t *testing.T) {
16251625 t .Fatal ("expected non-nil result" )
16261626 }
16271627
1628- // Should use PostgresLatestMajorVersion by default
1628+ // Should use PostgresLatestMajorVersion() by default
16291629 data , ok := result .Data .(* ExtensionAddData )
16301630 if ! ok {
16311631 t .Fatal ("expected data to be *ExtensionAddData" )
16321632 }
1633- if data .PgVersion != PostgresLatestMajorVersion {
1634- t .Errorf ("expected PgVersion=%d, got %d" , PostgresLatestMajorVersion , data .PgVersion )
1633+ if data .PgVersion != PostgresLatestMajorVersion () {
1634+ t .Errorf ("expected PgVersion=%d, got %d" , PostgresLatestMajorVersion () , data .PgVersion )
16351635 }
16361636}
16371637
@@ -2270,13 +2270,13 @@ func TestRmExtensionsDefaultPgVersion(t *testing.T) {
22702270 t .Fatal ("expected non-nil result" )
22712271 }
22722272
2273- // Should use PostgresLatestMajorVersion by default
2273+ // Should use PostgresLatestMajorVersion() by default
22742274 data , ok := result .Data .(* ExtensionRmData )
22752275 if ! ok {
22762276 t .Fatal ("expected data to be *ExtensionRmData" )
22772277 }
2278- if data .PgVersion != PostgresLatestMajorVersion {
2279- t .Errorf ("expected PgVersion=%d, got %d" , PostgresLatestMajorVersion , data .PgVersion )
2278+ if data .PgVersion != PostgresLatestMajorVersion () {
2279+ t .Errorf ("expected PgVersion=%d, got %d" , PostgresLatestMajorVersion () , data .PgVersion )
22802280 }
22812281}
22822282
@@ -2466,13 +2466,13 @@ func TestUpgradeExtensionsDefaultPgVersion(t *testing.T) {
24662466 t .Fatal ("expected non-nil result" )
24672467 }
24682468
2469- // Should use PostgresLatestMajorVersion by default
2469+ // Should use PostgresLatestMajorVersion() by default
24702470 data , ok := result .Data .(* ExtensionUpdateData )
24712471 if ! ok {
24722472 t .Fatal ("expected data to be *ExtensionUpdateData" )
24732473 }
2474- if data .PgVersion != PostgresLatestMajorVersion {
2475- t .Errorf ("expected PgVersion=%d, got %d" , PostgresLatestMajorVersion , data .PgVersion )
2474+ if data .PgVersion != PostgresLatestMajorVersion () {
2475+ t .Errorf ("expected PgVersion=%d, got %d" , PostgresLatestMajorVersion () , data .PgVersion )
24762476 }
24772477}
24782478
0 commit comments