Skip to content

Commit 74c945b

Browse files
fergusstrangeferguss
and
ferguss
authored
Upgrade versions (#132)
* Upgrade versions * Fix default version * Try rolling back v12 --------- Co-authored-by: ferguss <fergus@sitehvie.co>
1 parent 0db55ea commit 74c945b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

config.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Config struct {
3535
// StartTimeout: 15 Seconds
3636
func DefaultConfig() Config {
3737
return Config{
38-
version: V15,
38+
version: V16,
3939
port: 5432,
4040
database: "postgres",
4141
username: "postgres",
@@ -147,11 +147,11 @@ type PostgresVersion string
147147
// Predefined supported Postgres versions.
148148
const (
149149
V16 = PostgresVersion("16.2.0")
150-
V15 = PostgresVersion("15.3.0")
151-
V14 = PostgresVersion("14.8.0")
150+
V15 = PostgresVersion("15.6.0")
151+
V14 = PostgresVersion("14.11.0")
152152
V13 = PostgresVersion("13.14.0")
153-
V12 = PostgresVersion("12.15.0")
154-
V11 = PostgresVersion("11.20.0")
153+
V12 = PostgresVersion("12.17.0")
154+
V11 = PostgresVersion("11.22.0")
155155
V10 = PostgresVersion("10.23.0")
156156
V9 = PostgresVersion("9.6.24")
157157
)

version_strategy_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {
105105

106106
assert.Equal(t, "linux", operatingSystem)
107107
assert.Equal(t, "arm32v6", architecture)
108-
assert.Equal(t, V15, postgresVersion)
108+
assert.Equal(t, V16, postgresVersion)
109109
}
110110

111111
func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
@@ -121,7 +121,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
121121

122122
assert.Equal(t, "linux", operatingSystem)
123123
assert.Equal(t, "arm32v7", architecture)
124-
assert.Equal(t, V15, postgresVersion)
124+
assert.Equal(t, V16, postgresVersion)
125125
}
126126

127127
func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
@@ -139,7 +139,7 @@ func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
139139

140140
assert.Equal(t, "linux", operatingSystem)
141141
assert.Equal(t, "amd64-alpine", architecture)
142-
assert.Equal(t, V15, postgresVersion)
142+
assert.Equal(t, V16, postgresVersion)
143143
}
144144

145145
func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {

0 commit comments

Comments
 (0)