From 15253c99ca9869d8a153b5086de645aa3b2a7e30 Mon Sep 17 00:00:00 2001 From: gcastellov Date: Wed, 19 Nov 2025 10:14:54 +0100 Subject: [PATCH 1/2] upgrading to net10 --- .github/workflows/dotnet.yml | 2 +- src/Directory.Build.props | 4 ++-- src/Progress/Progress.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ce40d16..2375a24 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,7 +19,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore ./src/Progress.sln - name: Build diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 5df126f..e61ae9f 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,8 +1,8 @@  - net8.0 - 12.0 + net10.0 + 14.0 enable enable true diff --git a/src/Progress/Progress.csproj b/src/Progress/Progress.csproj index 37b5589..bf30365 100644 --- a/src/Progress/Progress.csproj +++ b/src/Progress/Progress.csproj @@ -6,7 +6,7 @@ Progress - 2.0.1 + 3.0.0 MIT Gerard Castello Report progress with ease From c603b31bd8f880b72ee78be566aa3b505fa3441a Mon Sep 17 00:00:00 2001 From: gcastellov Date: Wed, 19 Nov 2025 10:28:58 +0100 Subject: [PATCH 2/2] fixing delay tolerance assertion issue --- src/Progress.UnitTest/TimerTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Progress.UnitTest/TimerTests.cs b/src/Progress.UnitTest/TimerTests.cs index b883f3e..c1b616e 100644 --- a/src/Progress.UnitTest/TimerTests.cs +++ b/src/Progress.UnitTest/TimerTests.cs @@ -61,13 +61,13 @@ public async Task GivenSomeWorkDone_WhenGettingElapsedTime_ThenReturnsTime() { // Arrange var timer = Timer.Start(); - var delay = TimeSpan.FromSeconds(1); + var delay = TimeSpan.FromMilliseconds(1100); await Task.Delay(delay); // Act var actual = timer.ElapsedTime; // Assert - actual.Should().BeGreaterThanOrEqualTo(delay); + actual.Should().BeGreaterThanOrEqualTo(TimeSpan.FromSeconds(1)); } }