meilisearch/MeiliSearch

Mock server initialisation glitch in tests on windows

Open

#5 748 ouverte le 8 juil. 2025

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Rust (733 forks)batch import
good first issuemaintenance

Métriques du dépôt

Stars
 (20 887 stars)
Métriques de merge PR
 (Merge moyen 4j 3h) (37 PRs mergées en 30 j)

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.

Guide contributeur