Test killed at shutdown: too long

I ran go test and got a timeout error:

 *** Test killed with quit: ran too long (10m0s). FAIL call/httptest 600.050s 

How to extend the waiting time and make it more than 10 minutes?

+6
source share
1 answer

Use go test -timeout <duration> , for example:

 $ go test -timeout 20m 

From documents :

Allowed time units: ns, us, m,

+10
source

Source: https://habr.com/ru/post/980521/


All Articles