我运行go test并收到超时错误:*** Test killed with quit: ran too long (10m0s).FAIL    call/httptest   600.050s如何延长超时并使其大于 10 分钟?
                    
                    
                2 回答
 
                    
                    
                            宝慕林4294392
                            
                                
                            
                        
                        
                                                
                    TA贡献2021条经验 获得超8个赞
默认情况下,超时在 10 分钟后退出
go test --help
-timeout d
If a test binary runs longer than duration d, panic.
If d is 0, the timeout is disabled.
The default is 10 minutes (10m).
- 2 回答
- 0 关注
- 300 浏览
添加回答
举报
0/150
	提交
		取消
	