Skip to content

Commit 7331d4e

Browse files
committed
no password for temba user
1 parent 071a647 commit 7331d4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
- redis-server
1414

1515
before_script:
16-
- psql -U postgres -c "CREATE USER temba WITH PASSWORD 'temba';"
16+
- psql -U postgres -c "CREATE USER temba;"
1717
- psql -U postgres -c "ALTER ROLE temba WITH SUPERUSER;"
1818
- psql -U postgres -c "CREATE DATABASE temba;"
1919

models/models_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ func TestMain(m *testing.M) {
3333
// % pg_dump -F c temba > temba.dump
3434
func reset() {
3535
// restore our db using pg_restore
36-
cmd := exec.Command("pg_restore", "-d", "temba", "-c", "temba.dump")
37-
err := cmd.Run()
36+
cmd := exec.Command("pg_restore", "-d", "temba", "-c", "-U", "temba", "temba.dump")
37+
output, err := cmd.CombinedOutput()
3838
if err != nil {
39-
panic(fmt.Sprintf("error restoring database: %s", err))
39+
panic(fmt.Sprintf("error restoring database: %s: %s", err, string(output)))
4040
}
4141
}
4242

0 commit comments

Comments
 (0)