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)]