I am using Drone CI to deploy golang applications however, local test results differs from drone test results basically, tests fail due to quotes or missing quotes in strings, like the following:
--- FAIL: TestFooImpl_POST (0.00s)
--- FAIL: TestFooImpl_POST/bad_url_-_fail_to_create_request (0.00s)
foo_test.go:75: values do not resemble:
want [parse http://bad\url.com: invalid character "\\" in host name]
got [parse "http://bad\\url.com": invalid character "\\" in host name]
However, running locally, I get no such errors
=== RUN TestFooImpl_POST/bad_url_-_fail_to_create_request
--- PASS: TestFooImpl_POST/bad_url_-_fail_to_create_request (0.00s)
This is confusing and irritating as local and remote tests behave differently. False error results tend to be misleading
Any known reason for this? Or a way to solve?
Aucun commentaire:
Enregistrer un commentaire