Skip to content

Commit

Permalink
Upgrade dev packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Feb 12, 2024
1 parent 3b75265 commit 80c8557
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/ReportPortal.Client/ReportPortal.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="GitVersion.MsBuild" Version="5.10.3">
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public async Task StartFinishDeleteLaunch()

Assert.NotNull(gotLaunch);
Assert.Equal("StartFinishDeleteAsyncLaunch", gotLaunch.Name);
gotLaunch.StartTime.Should().BeCloseTo(startLaunchRequest.StartTime, precision: 1);
gotLaunch.EndTime.Should().BeCloseTo(finishLaunchRequest.EndTime, precision: 1);
gotLaunch.StartTime.Should().BeCloseTo(startLaunchRequest.StartTime, precision: TimeSpan.FromMilliseconds(1));
gotLaunch.EndTime.Should().BeCloseTo(finishLaunchRequest.EndTime, precision: TimeSpan.FromMilliseconds(1));

var delMessage = await Service.Launch.DeleteAsync(gotLaunch.Id);
Assert.Contains("successfully", delMessage.Info);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public async Task StartFinishDeleteLaunch()

var gotLaunch = await Service.Launch.GetAsync(launch.Uuid);
Assert.Equal("StartFinishDeleteLaunch", gotLaunch.Name);
gotLaunch.StartTime.Should().BeCloseTo(startLaunchRequest.StartTime, precision: 1);
gotLaunch.EndTime.Should().BeCloseTo(finishLaunchRequest.EndTime, precision: 1);
gotLaunch.StartTime.Should().BeCloseTo(startLaunchRequest.StartTime, precision: TimeSpan.FromMilliseconds(1));
gotLaunch.EndTime.Should().BeCloseTo(finishLaunchRequest.EndTime, precision: TimeSpan.FromMilliseconds(1));

var delMessage = await Service.Launch.DeleteAsync(gotLaunch.Id);
Assert.Contains("successfully", delMessage.Info);
Expand Down Expand Up @@ -222,8 +222,8 @@ public async Task StartFinishDeleteMergedLaunch()
};

var mergedLaunch = await Service.Launch.MergeAsync(mergeRequest);
mergedLaunch.StartTime.Should().BeCloseTo(mergeRequest.StartTime, precision: 1);
mergedLaunch.EndTime.Should().BeCloseTo(mergeRequest.EndTime, precision: 1);
mergedLaunch.StartTime.Should().BeCloseTo(mergeRequest.StartTime, precision: TimeSpan.FromMilliseconds(1));
mergedLaunch.EndTime.Should().BeCloseTo(mergeRequest.EndTime, precision: TimeSpan.FromMilliseconds(1));

var delMessage = await Service.Launch.DeleteAsync(mergedLaunch.Id);
Assert.Contains("successfully", delMessage.Info);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public async Task CreateLogWithDefaultStartTime()

var getLog = await Service.LogItem.GetAsync(log.Uuid);

getLog.Time.Should().BeCloseTo(utcNow);
getLog.Time.Should().BeCloseTo(utcNow, precision: TimeSpan.FromMilliseconds(1));
}

[Fact]
Expand Down Expand Up @@ -223,7 +223,7 @@ public async Task GetLogItem()
var gotLogItem = await Service.LogItem.GetAsync(log.Uuid);
Assert.Equal(addLogItemRequest.Text, gotLogItem.Text);
Assert.Equal(addLogItemRequest.Level, gotLogItem.Level);
gotLogItem.Time.Should().BeCloseTo(addLogItemRequest.Time, precision: 1);
gotLogItem.Time.Should().BeCloseTo(addLogItemRequest.Time, precision: TimeSpan.FromMilliseconds(1));
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="2.8.0" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void ShouldThrowExceptionIfIncorrectJson()
var json = "<abc />";
using (var reader = new MemoryStream(Encoding.UTF8.GetBytes(json)))
{
Func<Task> act = async () => await ModelSerializer.DeserializeAsync<MessageResponse>(reader);
Action act = async () => await ModelSerializer.DeserializeAsync<MessageResponse>(reader);
act.Should().Throw<Exception>();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public async Task StartFinishFullTest()
var getTest = await Service.TestItem.GetAsync(test.Uuid);
Assert.Null(getTest.ParentId);
Assert.Equal(startTestItemRequest.Name, getTest.Name);
getTest.StartTime.Should().BeCloseTo(startTestItemRequest.StartTime, precision: 1);
getTest.StartTime.Should().BeCloseTo(startTestItemRequest.StartTime, precision: TimeSpan.FromMilliseconds(1));
Assert.Equal(startTestItemRequest.Type, getTest.Type);
Assert.Equal(startTestItemRequest.Description, getTest.Description);
Assert.Equal(parameters, getTest.Parameters);
Expand All @@ -212,7 +212,7 @@ public async Task StartFinishFullTest()

getTest = await Service.TestItem.GetAsync(test.Uuid);
Assert.Equal(finishTestItemRequest.Status, getTest.Status);
getTest.EndTime.Should().BeCloseTo(finishTestItemRequest.EndTime, precision: 1);
getTest.EndTime.Should().BeCloseTo(finishTestItemRequest.EndTime, precision: TimeSpan.FromMilliseconds(1));
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.10" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions test/ReportPortal.Shared.Tests/ReportPortal.Shared.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="RichardSzalay.MockHttp" Version="7.0.0" />
<PackageReference Include="WireMock.Net" Version="1.5.40" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PackageReference Include="WireMock.Net" Version="1.5.47" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 80c8557

Please sign in to comment.