Skip to content

Commit

Permalink
no password for temba user
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Sep 14, 2018
1 parent 071a647 commit 7331d4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- redis-server

before_script:
- psql -U postgres -c "CREATE USER temba WITH PASSWORD 'temba';"
- psql -U postgres -c "CREATE USER temba;"
- psql -U postgres -c "ALTER ROLE temba WITH SUPERUSER;"
- psql -U postgres -c "CREATE DATABASE temba;"

Expand Down
6 changes: 3 additions & 3 deletions models/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func TestMain(m *testing.M) {
// % pg_dump -F c temba > temba.dump
func reset() {
// restore our db using pg_restore
cmd := exec.Command("pg_restore", "-d", "temba", "-c", "temba.dump")
err := cmd.Run()
cmd := exec.Command("pg_restore", "-d", "temba", "-c", "-U", "temba", "temba.dump")
output, err := cmd.CombinedOutput()
if err != nil {
panic(fmt.Sprintf("error restoring database: %s", err))
panic(fmt.Sprintf("error restoring database: %s: %s", err, string(output)))
}
}

Expand Down

0 comments on commit 7331d4e

Please # to comment.