From 5690b5c183b3ee1326cbca9850bb0c8f295eb8a8 Mon Sep 17 00:00:00 2001 From: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:48:37 +0200 Subject: [PATCH] chore: Rename member --- src/Testcontainers.Pulsar/PulsarContainer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Testcontainers.Pulsar/PulsarContainer.cs b/src/Testcontainers.Pulsar/PulsarContainer.cs index 301abe73b..927e60e5d 100644 --- a/src/Testcontainers.Pulsar/PulsarContainer.cs +++ b/src/Testcontainers.Pulsar/PulsarContainer.cs @@ -63,7 +63,7 @@ public async Task 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; @@ -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)); }