meilisearch/MeiliSearch

Mock server initialisation glitch in tests on windows

Aberta

#5.748 aberto em 8 de jul. de 2025

 (3 comentários) (0 reação) (0 responsável)Rust (2.542 forks)batch import
good first issuemaintenance

Métricas do repositório

Stars
 (57.572 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador