From db76fc0ad36087b65cda2ceab3e7a3cecedbe377 Mon Sep 17 00:00:00 2001 From: Arthur Vickers Date: Wed, 12 Nov 2025 12:56:00 +0000 Subject: [PATCH] CSHARP-5778: Fix atlas-search-index-helpers-test Turns out that the version on Evergreen is 8.0.16, while the version I have locally is 8.2.1. The exact exception message content is different between the two. I have tested this with a patch on Evergreen. There does not appear to be a way to specify the minor version for an Atlas deployment in Evergreen. --- .../Search/AtlasSearchIndexManagmentTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs b/tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs index 62b6465df66..423c8521cd6 100644 --- a/tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs +++ b/tests/MongoDB.Driver.Tests/Search/AtlasSearchIndexManagmentTests.cs @@ -253,7 +253,7 @@ public async Task Case8_driver_requires_explicit_type_to_create_vector_search_in : Record.Exception(() => _collection.SearchIndexes.CreateOne( new CreateSearchIndexModel(indexName, _vectorIndexDefinition).Definition, indexName)); - exception.Message.Should().Contain("Command createSearchIndexes failed: \"userCommand.indexes[0].mappings\" is required."); + exception.Message.Should().Contain("Command createSearchIndexes failed"); } [Theory(Timeout = Timeout)]