Skip to content

Commit 199c2e7

Browse files
committed
fix tests for 5.0.401
1 parent 60819f7 commit 199c2e7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"version": "5.0.207"
3+
"version": "5.0.401"
44
},
55
"tools": {
6-
"dotnet": "5.0.207",
6+
"dotnet": "5.0.401",
77
"runtimes": {
88
"dotnet/x64": [
99
"2.1.30",

src/ProjectTemplates/Shared/TemplatePackageInstaller.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,12 @@ private static async Task VerifyCannotFindTemplateAsync(ITestOutputHelper output
173173
{
174174
var proc = await RunDotNetNew(output, $"\"{templateName}\"");
175175

176-
if (!proc.Output.Contains("Couldn't find an installed template that matches the input, searching online for one that does..."))
176+
if (!proc.Error.Contains($"No templates found matching: '{templateName}'."))
177177
{
178-
throw new InvalidOperationException($"Failed to uninstall previous templates. The template '{templateName}' could still be found.");
178+
throw new InvalidOperationException($"Failed to uninstall previous templates. The template '{templateName}' could still be found. " +
179+
$"Process exit code:{proc.ExitCode}" +
180+
$"StdOut:{proc.Output}." +
181+
$"StdErr:{proc.Error}");
179182
}
180183
}
181184
finally

0 commit comments

Comments
 (0)