This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 6e6f2afd3 test(csharp): fix GetOffset test case (#2651)
6e6f2afd3 is described below
commit 6e6f2afd325b316d295d1512455ef69bf69ea541
Author: Ćukasz Zborek <[email protected]>
AuthorDate: Fri Jan 30 22:01:35 2026 +0100
test(csharp): fix GetOffset test case (#2651)
---
foreign/csharp/Directory.Packages.props | 4 ++--
foreign/csharp/Iggy_SDK.Tests.Integration/OffsetTests.cs | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/foreign/csharp/Directory.Packages.props
b/foreign/csharp/Directory.Packages.props
index d32135b2f..0d927b969 100644
--- a/foreign/csharp/Directory.Packages.props
+++ b/foreign/csharp/Directory.Packages.props
@@ -12,11 +12,11 @@
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage"
Version="18.3.2" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport"
Version="2.0.2" />
<PackageVersion Include="Moq" Version="4.20.72" />
- <PackageVersion Include="Reqnroll.xunit.v3" Version="3.3.2" />
+ <PackageVersion Include="Reqnroll.xunit.v3" Version="3.3.3" />
<PackageVersion Include="Shouldly" Version="4.3.0" />
<PackageVersion Include="System.IO.Hashing" Version="8.0.0" />
<PackageVersion Include="Testcontainers" Version="4.10.0" />
- <PackageVersion Include="TUnit" Version="1.12.15" />
+ <PackageVersion Include="TUnit" Version="1.12.93" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers;
buildtransitive</IncludeAssets>
diff --git a/foreign/csharp/Iggy_SDK.Tests.Integration/OffsetTests.cs
b/foreign/csharp/Iggy_SDK.Tests.Integration/OffsetTests.cs
index bda2aa7bf..312c11aae 100644
--- a/foreign/csharp/Iggy_SDK.Tests.Integration/OffsetTests.cs
+++ b/foreign/csharp/Iggy_SDK.Tests.Integration/OffsetTests.cs
@@ -35,9 +35,9 @@ public class OffsetTests
[MethodDataSource<IggyServerFixture>(nameof(IggyServerFixture.ProtocolData))]
public async Task
StoreOffset_IndividualConsumer_Should_StoreOffset_Successfully(Protocol
protocol)
{
- await Fixture.Clients[protocol]
+ await Should.NotThrowAsync(() => Fixture.Clients[protocol]
.StoreOffsetAsync(Consumer.New("test-consumer"),
Identifier.String(Fixture.StreamId.GetWithProtocol(protocol)),
- Identifier.String(Fixture.TopicRequest.Name), SetOffset, 0);
+ Identifier.String(Fixture.TopicRequest.Name), SetOffset, 0));
}
[Test]
@@ -68,9 +68,9 @@ public class OffsetTests
Identifier.String(Fixture.StreamId.GetWithProtocol(protocol)),
Identifier.String(Fixture.TopicRequest.Name),
Identifier.String("test_consumer_group"));
- await Fixture.Clients[protocol]
+ await Should.NotThrowAsync(() => Fixture.Clients[protocol]
.StoreOffsetAsync(Consumer.Group("test_consumer_group"),
Identifier.String(Fixture.StreamId.GetWithProtocol(protocol)),
- Identifier.String(Fixture.TopicRequest.Name), SetOffset, 0);
+ Identifier.String(Fixture.TopicRequest.Name), SetOffset, 0));
}
[Test]
@@ -89,7 +89,7 @@ public class OffsetTests
}
[Test]
-
[DependsOn(nameof(StoreOffset_ConsumerGroup_Should_StoreOffset_Successfully))]
+ [DependsOn(nameof(GetOffset_ConsumerGroup_Should_GetOffset_Successfully))]
[MethodDataSource<IggyServerFixture>(nameof(IggyServerFixture.ProtocolData))]
public async Task
GetOffset_ConsumerGroup_ByName_Should_GetOffset_Successfully(Protocol protocol)
{