Skip to content

Commit fb56573

Browse files
committed
Try using HTTP for PWA test
1 parent b2f0f8d commit fb56573

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWasmTemplateTest.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,16 @@ public TemplateInstance(string name, params string[] arguments)
164164
var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
165165

166166
Output.WriteLine("Running dotnet serve on published output...");
167-
var developmentCertificate = DevelopmentCertificate.Create(project.TemplateOutputDir);
168-
var args = $"-S --pfx \"{developmentCertificate.CertificatePath}\" --pfx-pwd \"{developmentCertificate.CertificatePassword}\" --port 0";
169167
var command = DotNetMuxer.MuxerPathOrDefault();
168+
string args;
170169
if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DIR")))
171170
{
172-
args = $"serve " + args;
171+
args = $"serve ";
173172
}
174173
else
175174
{
176175
command = "dotnet-serve";
177-
args = "--roll-forward LatestMajor " + args; // dotnet-serve targets net5.0 by default
176+
args = "--roll-forward LatestMajor"; // dotnet-serve targets net5.0 by default
178177
}
179178

180179
var serveProcess = ProcessEx.Run(TestOutputHelper, publishDir, command, args);

0 commit comments

Comments
 (0)