@@ -33,14 +33,14 @@ func TestRestoreCommandBuilding(t *testing.T) {
33
33
ForceInit : false ,
34
34
DumpLocation : "/tmp/db.dump" ,
35
35
},
36
- Command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "testdb " , "--create" , "--no-privileges" , "--no-owner" , "--jobs" , "1" , "/tmp/db.dump" },
36
+ Command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres " , "--create" , "--no-privileges" , "--no-owner" , "--jobs" , "1" , "/tmp/db.dump" },
37
37
},
38
38
{
39
39
CopyOptions : RestoreOptions {
40
40
ParallelJobs : 4 ,
41
41
ForceInit : true ,
42
42
},
43
- Command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "testdb " , "--create" , "--no-privileges" , "--no-owner" , "--clean" , "--if-exists" , "--jobs" , "4" , "" },
43
+ Command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres " , "--create" , "--no-privileges" , "--no-owner" , "--clean" , "--if-exists" , "--jobs" , "4" , "" },
44
44
},
45
45
{
46
46
CopyOptions : RestoreOptions {
@@ -49,7 +49,7 @@ func TestRestoreCommandBuilding(t *testing.T) {
49
49
Partial : Partial {Tables : []string {"test" , "users" }},
50
50
DumpLocation : "/tmp/db.dump" ,
51
51
},
52
- Command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "testdb " , "--create" , "--no-privileges" , "--no-owner" , "--jobs" , "1" , "--table" , "test" , "--table" , "users" , "/tmp/db.dump" },
52
+ Command : []string {"pg_restore" , "--username" , "john" , "--dbname" , "postgres " , "--create" , "--no-privileges" , "--no-owner" , "--jobs" , "1" , "--table" , "test" , "--table" , "users" , "/tmp/db.dump" },
53
53
},
54
54
}
55
55
0 commit comments