This commit is contained in:
@ -2,7 +2,6 @@ package server
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
@ -18,8 +17,7 @@ func TestRegisterUser(t *testing.T) {
|
||||
t.Parallel()
|
||||
database, err := postgres.Connect("pgtx", cfg.DatabaseConnection)
|
||||
if err != nil {
|
||||
fmt.Printf("could not connect to db: %s\n", err)
|
||||
t.Skip()
|
||||
t.Errorf("connect to DB: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user