Yes : I have an error
```go
=== RUN TestHealthCheck
[GIN] 2022/07/30 - 15:42:17 | 404 | 0s | | GET ""/api/v1/healthcheck"
main_test.go:29:
Error Trace: myPath\go-jwt\main_test.go:29
Error: Not equal:
expected: 200
actual : 404
Test: TestHealthCheck
main_test.go:31:
Error Trace: myPath\go-jwt\main_test.go:31
Error: Not equal:
expected: "Server is up and running"
actual : "404 page not found"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-Server is up and running
+404 page not found
Test: TestHealthCheck
--- FAIL: TestHealthCheck (0.00s)
=== RUN TestPing
[GIN] 2022/07/30 - 15:42:17 | 404 | 0s | | GET "/api/v1/ping"
main_test.go:49:
Error Trace: myPath\go-jwt\main_test.go:49
Error: Not equal:
expected: 200
actual : 404
Test: TestPing
main_test.go:50:
Error Trace: myPath\go-jwt\main_test.go:50
Error: Not equal:
expected: "pong"
actual : "404 page not found"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-pong
+404 page not found
Test: TestPing
--- FAIL: TestPing (0.00s)
FAIL
Is there a problem of context cause when I run the main.go this endPoints are responding well ?
Is there something I omit in my tests
The first problem is that you haven’t told the router about your HealthCheck and Ping controllers, so Gin is performing the default behavior of returning a 404. I’ve never used Gin before, but I looked around on their site and it seems like what you want is to configure those routes with the router’s GET function: