Skip to content

Commit

Permalink
fixed PauseTokenTest.cs class
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Sep 20, 2024
1 parent fafb265 commit 8ab3f93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:

- name: Run tests and collect coverage
run: |
dotnet test -c Release ./src --verbosity normal --no-build --no-restore \
dotnet test -c Release ./src --verbosity normal --no-build --no-restore \
--collect:"XPlat Code Coverage" --results-directory ./TestResults/ \
/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura \
/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura \
/p:CoverletOutput=./TestResults/coverage.cobertura.xml
- name: List files in TestResults directory
Expand Down
2 changes: 1 addition & 1 deletion src/Downloader.Test/UnitTests/PauseTokenTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task TestPauseTaskWithPauseToken()
checkTokenStateIsPaused &= pts.IsPaused;
await Task.Delay(1);
hasRunningTask &= (_actualPauseCount > expectedCount);
expectedCount = _actualPauseCount;
Interlocked.Exchange(ref expectedCount, _actualPauseCount);
}
await cts.CancelAsync();

Expand Down

0 comments on commit 8ab3f93

Please sign in to comment.