Skip to content

Commit c29f7dd

Browse files
Merge #667
667: Make index swap test more permissive r=curquiza a=Strift Fix [Meilisearch 1.18 tests run](https://github.com/meilisearch/meilisearch/actions/runs/17061126416/job/48368042223) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated a JSON-related test to assert the serialized output contains the expected indexes array rather than matching exact JSON, making the test more resilient to formatting differences. No change to behavior or public APIs. * **Style** * Minor indentation/formatting cleanup of test attribute annotations; no functional impact. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Strift <lau.cazanove@gmail.com>
2 parents 8048c15 + 57b7fc3 commit c29f7dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Meilisearch.Tests/IndexSwapTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public void CreateExpectedJSONFormat()
2020
{
2121
var swap = new IndexSwap("indexA", "indexB");
2222

23-
Assert.Equal("{\"indexes\":[\"indexA\",\"indexB\"]}", JsonSerializer.Serialize(swap));
23+
var json = JsonSerializer.Serialize(swap);
24+
Assert.Contains("\"indexes\":[\"indexA\",\"indexB\"]", json);
2425
}
2526
}
2627
}

0 commit comments

Comments
 (0)