@@ -12,7 +12,7 @@ import (
12
12
)
13
13
14
14
func Test_defaultInitDatabase_ErrorWhenCannotCreatePasswordFile (t * testing.T ) {
15
- err := defaultInitDatabase ("path_not_exists" , "path_not_exists" , "path_not_exists" , "Tom" , "Beer" , "" , os .Stderr )
15
+ err := defaultInitDatabase ("path_not_exists" , "path_not_exists" , "path_not_exists" , "Tom" , "Beer" , "" , "" , os .Stderr )
16
16
17
17
assert .EqualError (t , err , "unable to write password file to path_not_exists/pwfile" )
18
18
}
@@ -49,7 +49,7 @@ func Test_defaultInitDatabase_ErrorWhenCannotStartInitDBProcess(t *testing.T) {
49
49
50
50
_ , _ = logFile .Write ([]byte ("and here are the logs!" ))
51
51
52
- err = defaultInitDatabase (binTempDir , runtimeTempDir , filepath .Join (runtimeTempDir , "data" ), "Tom" , "Beer" , "" , logFile )
52
+ err = defaultInitDatabase (binTempDir , runtimeTempDir , filepath .Join (runtimeTempDir , "data" ), "Tom" , "Beer" , "" , "" , logFile )
53
53
54
54
assert .NotNil (t , err )
55
55
assert .Contains (t , err .Error (), fmt .Sprintf ("unable to init database using '%s/bin/initdb -A password -U Tom -D %s/data --pwfile=%s/pwfile'" ,
@@ -72,7 +72,7 @@ func Test_defaultInitDatabase_ErrorInvalidLocaleSetting(t *testing.T) {
72
72
}
73
73
}()
74
74
75
- err = defaultInitDatabase (tempDir , tempDir , filepath .Join (tempDir , "data" ), "postgres" , "postgres" , "en_XY" , os .Stderr )
75
+ err = defaultInitDatabase (tempDir , tempDir , filepath .Join (tempDir , "data" ), "postgres" , "postgres" , "en_XY" , "" , os .Stderr )
76
76
77
77
assert .NotNil (t , err )
78
78
assert .Contains (t , err .Error (), fmt .Sprintf ("unable to init database using '%s/bin/initdb -A password -U postgres -D %s/data --pwfile=%s/pwfile --locale=en_XY'" ,
0 commit comments