为什么Minio的测试失败?
我使用Nestjs开发,我的服务器使用minio
存储文件。由于某种原因,当我与Jest进行E2E测试时 - 大多数时间只有一个包括minio
上传的测试成功,而其他包括Minio上传的测试因超时而导致失败(默认超时, 5000 ms
)。我知道我可以增加超时,但我想我稍后会再次面对更多测试。似乎由于某种原因,当有多个上传请求时,minioclient
对象变得较慢。
有没有更好的方法来解决它,而不是增加超时?
提前致谢。
I develop with NestJS and my server uses Minio
to store files. For some reason, when I do E2E tests with jest - most of the times only one test that include Minio
upload succeeds, while the other tests that include Minio upload fail due to timeout (the default timeout which is 5000 ms
). I know I can increase the timeout but I think I will just face it again later on when I will have more tests. It seems like for some reason the MinioClient
object becomes slower when there are multiple upload requests.
Is there a better way to solve it than increasing the timeout?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论