Skip to content

Commit

Permalink
chore: Rename member
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Sep 3, 2024
1 parent b39ac87 commit 5690b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Testcontainers.Pulsar/PulsarContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async Task<string> CreateAuthenticationTokenAsync(TimeSpan expiryTime, Ca
{
int secondsToMilliseconds;

if (_configuration.Image.MatchVersion(IsVersionAffectedByRegressionGh22811))
if (_configuration.Image.MatchVersion(IsVersionAffectedByGhIssue22811))
{
Logger.LogWarning("The 'apachepulsar/pulsar:3.2.0-3' and '3.3.0' images contains a regression. The expiry time is converted to the wrong unit of time: https://github.com/apache/pulsar/issues/22811.");
secondsToMilliseconds = 1000;
Expand Down Expand Up @@ -119,7 +119,7 @@ internal Task CopyStartupScriptAsync(CancellationToken ct = default)
return CopyAsync(Encoding.Default.GetBytes(startupScript.ToString()), PulsarBuilder.StartupScriptFilePath, Unix.FileMode755, ct);
}

private static bool IsVersionAffectedByRegressionGh22811(System.Version version)
private static bool IsVersionAffectedByGhIssue22811(System.Version version)
{
return version.Major == 3 && ((version.Minor == 2 && version.Build is >= 0 and <= 3) || (version.Minor == 3 && version.Build == 0));
}
Expand Down

0 comments on commit 5690b5c

Please sign in to comment.