@@ -42,14 +42,14 @@ func TestRestoreCommandBuilding(t *testing.T) {
4242 },
4343 DumpLocation : "/tmp/db.dump" ,
4444 },
45- command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--create" , "--jobs" , "1" , "/tmp/db.dump" },
45+ command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--exit-on-error" , "-- create" , "--jobs" , "1" , "/tmp/db.dump" },
4646 },
4747 {
4848 copyOptions : RestoreOptions {
4949 ParallelJobs : 4 ,
5050 ForceInit : true ,
5151 },
52- command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--create" , "--clean" , "--if-exists" , "--jobs" , "4" , "" },
52+ command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--exit-on-error" , "-- create" , "--clean" , "--if-exists" , "--jobs" , "4" , "" },
5353 },
5454 {
5555 copyOptions : RestoreOptions {
@@ -58,7 +58,7 @@ func TestRestoreCommandBuilding(t *testing.T) {
5858 Databases : map [string ]DumpDefinition {"testDB" : {}},
5959 DumpLocation : "/tmp/db.dump" ,
6060 },
61- command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--create" , "--jobs" , "2" , "/tmp/db.dump/testDB" },
61+ command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--exit-on-error" , "-- create" , "--jobs" , "2" , "/tmp/db.dump/testDB" },
6262 },
6363 {
6464 copyOptions : RestoreOptions {
@@ -71,7 +71,7 @@ func TestRestoreCommandBuilding(t *testing.T) {
7171 },
7272 DumpLocation : "/tmp/db.dump" ,
7373 },
74- command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--create" , "--jobs" , "1" , "--table" , "test" , "--table" , "users" , "/tmp/db.dump/testDB" },
74+ command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres" , "--no-privileges" , "--no-owner" , "--exit-on-error" , "-- create" , "--jobs" , "1" , "--table" , "test" , "--table" , "users" , "/tmp/db.dump/testDB" },
7575 },
7676 {
7777 copyOptions : RestoreOptions {
0 commit comments