In handlers_test.go the TestOrders keeps creating a status 400 Error in the CI due to env variables that are only loaded in handlers_test.go but not in handlers.go. This has been proved within this commit.
Since there is a check in handlers.go if the variable is not empty, the CI always gets stuck at this line.
This test runs fine locally and you will receive a HTTP-response of status 200.
In
handlers_test.go
theTestOrders
keeps creating a status 400 Error in the CI due to env variables that are only loaded inhandlers_test.go
but not inhandlers.go
. This has been proved within this commit. Since there is a check inhandlers.go
if the variable is not empty, the CI always gets stuck at this line. This test runs fine locally and you will receive a HTTP-response of status 200.