Skip to content

Commit

Permalink
feat: fix test case to accommodate new version
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenHoangSon96 committed Dec 18, 2024
1 parent a352349 commit ea62c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Client.Test/Internal/AssemblyHelperTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void GetAssemblyVersion()
var version = AssemblyHelper.GetVersion();
Assert.Multiple(() =>
{
Assert.That(Version.Parse(version).Major, Is.EqualTo(0));
Assert.That(Version.Parse(version).Major, Is.EqualTo(1));
Assert.That(Version.Parse(version).Minor, Is.GreaterThanOrEqualTo(0));
Assert.That(Version.Parse(version).Build, Is.EqualTo(0));
Assert.That(Version.Parse(version).Revision, Is.EqualTo(0));
Expand Down
2 changes: 1 addition & 1 deletion Client.Test/Internal/RestClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async Task UserAgent()

var requests = MockServer.LogEntries.ToList();

Assert.That(requests[0].RequestMessage.Headers?["User-Agent"][0], Does.StartWith("influxdb3-csharp/0."));
Assert.That(requests[0].RequestMessage.Headers?["User-Agent"][0], Does.StartWith("influxdb3-csharp/1."));
Assert.That(requests[0].RequestMessage.Headers?["User-Agent"][0], Does.EndWith(".0.0"));
}

Expand Down

0 comments on commit ea62c1e

Please sign in to comment.