Skip to content

Commit

Permalink
Fix environment variable tests for public stable versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussell committed Oct 29, 2024
1 parent b1943d4 commit 7cfea40
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.

using System.Collections.Generic;
using System.Linq;
using Xunit;

namespace Microsoft.DotNet.Docker.Tests
Expand Down Expand Up @@ -46,9 +45,9 @@ public static void Validate(
}
else
{
// If we're validating a product version environment variable for an internal build
// If we're validating a product version environment variable for a stable build
// we need to trim off the "servicing" or "rtm" part of the version value.
if (variable.IsProductVersion && Config.IsInternal)
if (variable.IsProductVersion)
{
int servicingIndex = actualValue.IndexOf("-servicing.");
if (servicingIndex != -1)
Expand Down

0 comments on commit 7cfea40

Please sign in to comment.