meilisearch/MeiliSearch

Mock server initialisation glitch in tests on windows

Open

#5.748 geöffnet am 8. Juli 2025

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (733 Forks)batch import
good first issuemaintenance

Repository-Metriken

Stars
 (20.887 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 3h) (37 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide