Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<PackageId>$(AssemblyName)</PackageId>
<VersionPrefix>0.1.1</VersionPrefix>
<VersionPrefix>0.1.2</VersionPrefix>
<Product>ChromaDB.Testcontainers</Product>
<Copyright>Copyright (c) 2019 - 2026 Andre Hofmeister and other authors. Copyright (c) 2026 ChromaDotNet contributors.</Copyright>
<Authors>ChromaDotNet contributors</Authors>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5"/>
<PackageVersion Include="xunit.v3" Version="3.2.2"/>
<!-- Third-party client dependencies to connect and interact with the containers: -->
<PackageVersion Include="ChromaDotNet.Client" Version="2.6.0"/>
<PackageVersion Include="ChromaDotNet.Client" Version="2.8.0"/>
</ItemGroup>
</Project>
3 changes: 2 additions & 1 deletion eng/sync-from-upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ else
fi
me=$(gh api user --jq .login)
for sha in $(git -C "$upstream" rev-list $range -- $paths); do
login=$(gh api "repos/$slug/commits/$sha" --jq '.author.login // empty' 2>/dev/null || true)
# A commit GitHub does not have yet, like one not pushed, has no login: gh prints the error body, so it is dropped.
login=$(gh api "repos/$slug/commits/$sha" --jq '.author.login // empty' 2>/dev/null) || login=""
[ -z "$login" ] || [ "$login" = "$me" ] && continue
id=$(gh api "users/$login" --jq .id)
name=$(git -C "$upstream" log -1 --format=%an "$sha" | cut -d' ' -f1)
Expand Down
2 changes: 1 addition & 1 deletion eng/upstream-commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6e9033402d6781d2bc2388fbec8c0a2eac337f97
fa155e215b36e34432a9cb440fdb7c3c1f21c214
12 changes: 4 additions & 8 deletions tests/Testcontainers.Chroma.Tests/ChromaDefaultContainerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,18 @@ public ValueTask DisposeAsync()
public async Task QueryReturnsNearestRecord()
{
// Given
using var httpClient = new HttpClient();

var options = new ChromaConfigurationOptions(_chromaContainer.GetConnectionString());

var client = new ChromaClient(options, httpClient);
using var client = new ChromaClient(_chromaContainer.GetConnectionString());

var collection = await client.CreateCollection("documents", cancellationToken: TestContext.Current.CancellationToken)
var collection = await client.CreateCollectionAsync("documents", cancellationToken: TestContext.Current.CancellationToken)
.ConfigureAwait(true);

var collectionClient = client.GetCollectionClient(collection);

await collectionClient.Add(["a", "b"], [new[] { 1f, 0f }, new[] { 0f, 1f }], cancellationToken: TestContext.Current.CancellationToken)
await collectionClient.AddAsync(["a", "b"], [new[] { 1f, 0f }, new[] { 0f, 1f }], cancellationToken: TestContext.Current.CancellationToken)
.ConfigureAwait(true);

// When
var results = await collectionClient.Query(new[] { 0.9f, 0.1f }, nResults: 1, cancellationToken: TestContext.Current.CancellationToken)
var results = await collectionClient.QueryAsync(new[] { 0.9f, 0.1f }, nResults: 1, cancellationToken: TestContext.Current.CancellationToken)
.ConfigureAwait(true);

// Then
Expand Down
Loading