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.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)); } } 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