Skip account_test when no db available
This commit is contained in:
parent
5f746f5889
commit
7c694fb32c
@ -2,6 +2,7 @@ package server
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
@ -22,7 +23,8 @@ func TestRegisterUser(t *testing.T) { //nolint:funlen
|
||||
t.Parallel()
|
||||
database, err := postgres.Connect("pgtx", "example")
|
||||
if err != nil {
|
||||
t.Errorf("could not connect to db: %s", err)
|
||||
fmt.Printf("could not connect to db: %s\n", err)
|
||||
t.Skip()
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user