-
Notifications
You must be signed in to change notification settings - Fork 310
Conversation
{ | ||
"version": "1.1.0-*", | ||
"dependencies": { | ||
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0-*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circular dependency
c04b368
to
f6fb717
Compare
|
||
throw new Exception($"Project root could not be found using {applicationBasePath}"); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: newline
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>fc578f4e-171c-4f82-b301-3abf6318d082</ProjectGuid> | ||
<RootNamespace>Microsoft.AspNetCore.Hosting.FunctionalTests</RootNamespace> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run Dougs script to clean this up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shared version was out-of-date. I fixed that…
f6fb717
to
02dc39e
Compare
02dc39e
to
4e7de6a
Compare
deployer.Deploy(); | ||
|
||
// Wait for application to start | ||
System.Threading.Thread.Sleep(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you query the HostProcess to see if it's started? Why was the delay needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delay is to make sure hosting started IServer.
|
||
SendSIGINT(deployer.HostProcess.Id); | ||
|
||
deployer.HostProcess.WaitForExit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this going to make the test hang if something goes wrong? Any way to timeout here?
|
||
public void Start<TContext>(IHttpApplication<TContext> application) | ||
{ | ||
_serverEvent.Set(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no guarantee Start will be called if there are other startup errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then process would be killed with timeout.
"Microsoft.Extensions.Configuration": "1.1.0-*", | ||
"Microsoft.Extensions.Configuration.CommandLine": "1.1.0-*", | ||
"Microsoft.Extensions.Logging.Console": "1.1.0-*", | ||
"Microsoft.Net.Http.Headers": "1.1.0-*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed?
"version": "1.1.0-*", | ||
"dependencies": { | ||
"Microsoft.AspNetCore.Hosting": "1.1.0-*", | ||
"Microsoft.AspNetCore.WebUtilities": "1.1.0-*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed?
} | ||
}, | ||
"tools": { | ||
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove tools and scripts
}, | ||
"publishOptions": { | ||
"include": [ | ||
"web.config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
@pranavkm FYI |
@Tratcher