Skip to content

Commit

Permalink
Fix integration test review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
juzuluag committed Jan 9, 2023
1 parent 349a65e commit e24ddc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
namespace CarbonAware.CLI.IntegrationTests.Commands.Location;

/// <summary>
/// Tests that the CLI handles and packages various responses from aggregators
/// and data sources properly, including empty responses and exceptions.
/// Tests that the CLI handles responses from location sources.
/// </summary>
[TestFixture(DataSourceType.JSON)]
[TestFixture(DataSourceType.WattTime)]
Expand All @@ -25,7 +24,7 @@ public async Task Locations_Help_ReturnsHelpText()
}

[Test]
public async Task Locations_ReturnsExpectedData()
public async Task Locations_ReturnsKnownData()
{
// Act
var exitCode = await InvokeCliAsync("locations");
Expand Down
2 changes: 1 addition & 1 deletion src/CarbonAware.LocationSources/src/LocationSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private void AddToLocationMap(string key, NamedGeoposition data, string sourceFi
var counter = keyCounter[key];
counter++;
var newKey = $"{key}_{counter}";
_logger.LogDebug("New key {newKey} generated from {key}", newKey, key);
_logger.LogWarning("New key {newKey} generated from {key}", newKey, key);
_allLocations.Add(newKey, loc);
keyCounter[key] = counter;
}
Expand Down

0 comments on commit e24ddc2

Please sign in to comment.