meilisearch/MeiliSearch

Mock server initialisation glitch in tests on windows

Open

#5,748 创建于 2025年7月8日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Rust (733 fork)batch import
good first issuemaintenance

仓库指标

Star
 (20,887 star)
PR 合并指标
 (平均合并 11天 20小时) (30 天内合并 41 个 PR)

描述

Multiple mock servers get to use the same port, which breaks our tests.

We would need to fix the bug in wiremock https://github.com/LukeMathWalker/wiremock-rs/issues/156. A fix was already proposed in the issue.

A temporary workaround is to leak MockServers so that they don't get dropped and recycled by wiremock's deadpool. This was made in commit https://github.com/meilisearch/meilisearch/pull/5734/commits/0a4f2ef89138b40be98f7d238c0e08236b8df57e. This commit needs to be reverted once this issue is fixed.

贡献者指南