Return url of test database (#48)
It is helpful to connect to a database when tests have failed.
This commit is contained in:
1 parent
7d8661be31
commit
8d7f24268c
7 files changed
+25
-25
No files matched your search
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func Test_Repository_CreateScope(t *testing.T) {
|
||||
t.Parallel()
|
||||
cleanup, conn := db.TestSetup(t, "postgres")
|
||||
cleanup, conn, _ := db.TestSetup(t, "postgres")
|
||||
defer cleanup()
|
||||
assert := assert.New(t)
|
||||
defer conn.Close()
|
||||
@@ -52,7 +52,7 @@ func Test_Repository_CreateScope(t *testing.T) {
|
||||
|
||||
func Test_Repository_UpdateScope(t *testing.T) {
|
||||
t.Parallel()
|
||||
cleanup, conn := db.TestSetup(t, "postgres")
|
||||
cleanup, conn, _ := db.TestSetup(t, "postgres")
|
||||
defer cleanup()
|
||||
assert := assert.New(t)
|
||||
defer conn.Close()
|
||||
@@ -138,7 +138,7 @@ func Test_Repository_UpdateScope(t *testing.T) {
|
||||
|
||||
func Test_Repository_LookupScope(t *testing.T) {
|
||||
t.Parallel()
|
||||
cleanup, conn := db.TestSetup(t, "postgres")
|
||||
cleanup, conn, _ := db.TestSetup(t, "postgres")
|
||||
defer cleanup()
|
||||
assert := assert.New(t)
|
||||
defer conn.Close()
|
||||
|
||||
Reference in new issue
Block a user