Skip to content

Commit 28ec417

Browse files
committed
Fix test
1 parent e28df7e commit 28ec417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/dotnet-new.IntegrationTests/CommonTemplatesTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public async Task AllCommonItemsCreate(string expectedTemplateName, string templ
8888

8989
// globaljson is appending current sdk version. Due to the 'base' dotnet used to run test this version differs
9090
// on dev and CI runs and possibly from the version within test host. Easiest is just to scrub it away
91-
if (expectedTemplateName.Equals("global.json file") && args == null)
91+
if (expectedTemplateName.Equals("global.json file") &&
92+
(args == null || !args.Contains("--sdk-version")))
9293
{
9394
string sdkVersionUnderTest = await new SdkInfoProvider().GetCurrentVersionAsync(default);
9495
options.CustomScrubbers?.AddScrubber(sb => sb.Replace(sdkVersionUnderTest, "%CURRENT-VER%"), "json");

0 commit comments

Comments
 (0)