Skip to content

Commit

Permalink
Updated tests and NuGet packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCiliaVincenti committed Dec 6, 2023
1 parent 1c31ba9 commit a1400ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion OpenWeatherMap.Cache.Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public async Task TestConcurrency()
{
Interlocked.Increment(ref totalFromAPI);
}
await Task.Delay(0);
}).ToList().AsParallel();
await Task.WhenAll(tasks);

Expand Down Expand Up @@ -76,7 +77,7 @@ public async Task TestConcurrencyAsync()
.Select(async i =>
{
var location = new Models.Location(48.6371, -122.1237);
var readings = await openWeatherMapCache.GetReadingsAsync(location).ConfigureAwait(false);
var readings = await openWeatherMapCache.GetReadingsAsync(location);
if (readings.IsSuccessful)
{
Interlocked.Increment(ref totalSuccessful);
Expand Down
10 changes: 5 additions & 5 deletions OpenWeatherMap.Cache/OpenWeatherMap.Cache.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<PackageProjectUrl>https://github.com/MarkCiliaVincenti/OpenWeatherMap.Cache</PackageProjectUrl>
<Copyright>MIT</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.9.11</Version>
<Version>1.9.12</Version>
<PackageIcon>logo.png</PackageIcon>
<PackageReleaseNotes>Dependency update.</PackageReleaseNotes>
<Description>An asynchronous .NET Standard 2.0 library that allows you to fetch &amp; cache current weather readings from the OpenWeather API, with built-in resiliency that can extend the cache lifetime in case the API is unreachable.</Description>
<Copyright>© 2023 Mark Cilia Vincenti</Copyright>
<PackageTags>OpenWeather,OpenWeatherMap,cache,weather,API,.NET Standard,netstandard</PackageTags>
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<AssemblyVersion>1.9.11.0</AssemblyVersion>
<FileVersion>1.9.11.0</FileVersion>
<AssemblyVersion>1.9.12.0</AssemblyVersion>
<FileVersion>1.9.12.0</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<IsPackable>true</IsPackable>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
Expand All @@ -34,9 +34,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AsyncKeyedLock" Version="6.2.3" />
<PackageReference Include="AsyncKeyedLock" Version="6.2.4" />
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="UnitsNet" Version="5.36.0" />
<PackageReference Include="UnitsNet" Version="5.37.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Expand Down

0 comments on commit a1400ab

Please sign in to comment.