Skip to content

Commit edac584

Browse files
committed
Fix component tests
1 parent 8d77be0 commit edac584

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.test.env

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FIRESTORE_EMULATOR_HOST=localhost:8788
22
MYSQL_ADDR=localhost
33

4-
TRAINER_HTTP_ADDR=localhost:5000
5-
TRAINER_GRPC_ADDR=localhost:5010
6-
TRAININGS_HTTP_ADDR=localhost:5001
7-
USERS_HTTP_ADDR=localhost:5002
8-
USERS_GRPC_ADDR=localhost:5020
4+
TRAINER_HTTP_ADDR=localhost:6000
5+
TRAINER_GRPC_ADDR=localhost:6010
6+
TRAININGS_HTTP_ADDR=localhost:6001
7+
USERS_HTTP_ADDR=localhost:6002
8+
USERS_GRPC_ADDR=localhost:6020

internal/common/server/http.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ func RunHTTPServerOnAddr(addr string, createHandler func(router chi.Router) http
3131

3232
logrus.Info("Starting HTTP server")
3333

34-
_ = http.ListenAndServe(addr, rootRouter)
34+
err := http.ListenAndServe(addr, rootRouter)
35+
if err != nil {
36+
logrus.WithError(err).Panic("Unable to start HTTP server")
37+
}
3538
}
3639

3740
func setMiddlewares(router *chi.Mux) {

0 commit comments

Comments
 (0)