Skip to content

Commit 9debcd5

Browse files
fix
1 parent d474c65 commit 9debcd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

EssentialCSharp.Chat.Tests/PgVectorConnectorTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using EssentialCSharp.Chat.Common.Models;
22
using Microsoft.SemanticKernel.Connectors.PgVector;
33

4-
#pragma warning disable SKEXP0010 // PgVector APIs are experimental
5-
64
namespace EssentialCSharp.Chat.Tests;
75

86
public class PgVectorConnectorTests
@@ -17,10 +15,12 @@ public class PgVectorConnectorTests
1715
public async Task GetCollection_WithBookContentChunk_DoesNotThrowTypeLoadException()
1816
{
1917
// Arrange — no real DB connection is needed; connections are only opened for actual queries
20-
var store = new PostgresVectorStore("Host=localhost;Database=test;Username=test;Password=test");
18+
#pragma warning disable SKEXP0010 // PostgresVectorStore is experimental
19+
using var store = new PostgresVectorStore("Host=localhost;Database=test;Username=test;Password=test");
2120

2221
// Act — this triggers loading internal PostgresModelBuilder via PostgresCollection ctor
2322
var collection = store.GetCollection<string, BookContentChunk>("test-collection");
23+
#pragma warning restore SKEXP0010
2424

2525
// Assert
2626
await Assert.That(collection).IsNotNull();

0 commit comments

Comments
 (0)