Use unique non-stable SDK version for comparison test (#17819)

This commit is contained in:
Nikola Milosavljevic 2023-11-16 11:41:04 -08:00 committed by GitHub
parent 97a31dd18c
commit 4e9256ffb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,10 +56,9 @@ public class SourceBuiltArtifactsTests : SdkTests
DirectoryInfo sdkDir = new DirectoryInfo(Path.Combine(outputDir, "sdk"));
string sdkVersionPath = sdkDir.GetFiles(".version", SearchOption.AllDirectories).Single().FullName;
string[] sdkVersionLines = File.ReadAllLines(Path.Combine(outputDir, sdkVersionPath));
string expectedSdkVersion = sdkVersionLines[1];
string expectedSdkVersion = sdkVersionLines[3]; // Get the unique, non-stable, SDK version
// Disable due to https://github.com/dotnet/source-build/issues/3693
// Assert.Equal(expectedSdkVersion, sdkVersion);
Assert.Equal(expectedSdkVersion, sdkVersion);
}
finally
{