@@ -790,11 +790,14 @@ func TestReloadCommandPrettyYAML(t *testing.T) {
790790func TestRestoreCommand (t * testing.T ) {
791791 shellcheck := require .ShellCheck (t )
792792
793- command := RestoreCommand ("/pgdata/pg13" , postgres .NewParameterSet (), "--repo=1" )
793+ command := RestoreCommand (19 , "/pgdata/pg13" , postgres .NewParameterSet (), "--repo=1" )
794794
795795 assert .DeepEqual (t , command [:3 ], []string {"bash" , "-ceu" , "--" })
796796 assert .Assert (t , len (command ) > 3 )
797797
798+ assert .Assert (t , cmp .Contains (command [3 ], "/usr/pgsql-19/bin" ),
799+ "expected path to PostgreSQL binaries" )
800+
798801 dir := t .TempDir ()
799802 file := filepath .Join (dir , "script.bash" )
800803 assert .NilError (t , os .WriteFile (file , []byte (command [3 ]), 0o600 ))
@@ -807,7 +810,7 @@ func TestRestoreCommand(t *testing.T) {
807810func TestRestoreCommandPrettyYAML (t * testing.T ) {
808811 assert .Assert (t ,
809812 cmp .MarshalContains (
810- RestoreCommand ("/dir" , postgres .NewParameterSet (), "--options" ),
813+ RestoreCommand (9 , "/dir" , postgres .NewParameterSet (), "--options" ),
811814 "\n - |" ,
812815 ),
813816 "expected literal block scalar" )
@@ -819,7 +822,7 @@ func TestRestoreCommandTDE(t *testing.T) {
819822
820823 assert .Assert (t ,
821824 cmp .MarshalContains (
822- RestoreCommand ("/dir" , params , "--options" ),
825+ RestoreCommand (20 , "/dir" , params , "--options" ),
823826 "encryption_key_command = 'whatever'" ,
824827 ),
825828 "expected encryption_key_command setting" )
0 commit comments